fix: message order ascending

This commit is contained in:
Adam 2025-12-11 14:46:18 -06:00
parent 2a9269c347
commit b34f434332
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
4 changed files with 6 additions and 6 deletions

View file

@ -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,
)
: [],
)