mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add helper to sort journal posts
This commit is contained in:
3
src/utils/sort-by-alphabet.ts
Normal file
3
src/utils/sort-by-alphabet.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const sortByAlphabet = (a: any, b: any) => {
|
||||
return a.data.title.localeCompare(b.data.title);
|
||||
};
|
||||
Reference in New Issue
Block a user