Newest notes first

This commit is contained in:
Tarrgon
2025-06-07 07:53:34 -04:00
parent 423fc69f9f
commit 4949e69eb2
+1 -1
View File
@@ -11,7 +11,7 @@ function getNoteText(note: Note): string {
} }
export async function getNoteMessage(userId: string, page: number): Promise<MessageContent | null> { export async function getNoteMessage(userId: string, page: number): Promise<MessageContent | null> {
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; page = page - 1;