(a: { id: string; title: string; url: string; date_published: string; date_modified: string; summary: string; tags?: string[] | undefined; }, b: { id: string; title: string; url: string; date_published: string; date_modified: string; summary: string; tags?: string[] | undefined; }): number import {compare_feed_items} from '@fuzdev/fuz_blog/feed.js'; Compares feed items newest first: by date_published descending, then by
id descending with numeric collation (so https://example.com/blog/10
sorts before https://example.com/blog/9), then by id code units.
For valid FeedDatetime values it's a total order, so the sort is deterministic for any input order.
create_atom_feed and BlogPostList both order items with it.
a
b
returns
number