Function: filterAndSortPosts()

Source: 1.0.0-rc.14 · ecc10ae38a81 (uncommitted changes)

ts
function filterAndSortPosts(
   pages, 
   siteConfig, 
   params?
): Post[];

Defined in: packages/valaxy/client/composables/post/index.ts:61

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

SiteConfig

params?

type?

string

Returns

Post[]