fix: message order ascending

This commit is contained in:
Adam
2025-12-11 14:46:18 -06:00
parent 98cb5169c6
commit 33943d800f
4 changed files with 6 additions and 6 deletions
@@ -209,7 +209,7 @@ export default function () {
const messages = createMemo(() =>
data().sessionID
? (data().message[data().sessionID]?.filter((m) => m.role === "user") ?? []).sort(
(a, b) => b.time.created - a.time.created,
(a, b) => a.time.created - b.time.created,
)
: [],
)