Function: filterAndSortPosts()
Source: 1.1.0 · e3417e89b638
ts
function filterAndSortPosts(
pages,
siteConfig,
params?
): Post[];Defined in: packages/valaxy/client/composables/post/filter.ts:8
Pure function to filter and sort posts from page list Can be used in both composables and stores without inject() issues
Parameters
pages
Post[]
siteConfig
params?
pathPrefix?
string
type?
string
Returns
Post[]