Skip to content

Function: sortByDate()

sortByDate(posts, desc): Partial<PostFrontMatter>[]

sort posts by date

Parameters

posts: Partial<PostFrontMatter>[]

desc: boolean = true

Returns

Partial<PostFrontMatter>[]

Defined in

packages/valaxy/client/utils/time.ts:69