From 4949e69eb22f580a461b1066f8efe7ed34a76225 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Sat, 7 Jun 2025 07:53:34 -0400 Subject: [PATCH] Newest notes first --- src/utils/note-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/note-utils.ts b/src/utils/note-utils.ts index a49445f..53aa23b 100644 --- a/src/utils/note-utils.ts +++ b/src/utils/note-utils.ts @@ -11,7 +11,7 @@ function getNoteText(note: Note): string { } export async function getNoteMessage(userId: string, page: number): Promise { - const notes = await Database.getNotes(userId); + const notes = (await Database.getNotes(userId)).sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()); page = page - 1;