Skip to content

Function: filterAndSortPosts()

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[]