Function: filterAndSortPosts() ​

Source: 1.1.0 · a1d5eeca2f43

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 ​

SiteConfig

params? ​

pathPrefix? ​

string

type? ​

string

Returns ​

Post[]