feat: add helper to sort journal posts

This commit is contained in:
Stefan Imhoff
2023-06-09 18:35:09 +02:00
parent c70a25ae6d
commit d2a9d9193c
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export const sortByAlphabet = (a: any, b: any) => {
return a.data.title.localeCompare(b.data.title);
};