From c2e94dffb87f43d0fb19bf2458ed922fb4f25435 Mon Sep 17 00:00:00 2001 From: somebody Date: Fri, 18 Nov 2022 18:02:57 -0600 Subject: [PATCH] Order fix --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index 7c0c1552..17f10802 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6093,7 +6093,7 @@ function updateChatStyle() { let addedMessages = 0; - for (const [chunkId, chunk] of Object.entries(actions_data)) { + for (const [chunkId, chunk] of Object.entries(actions_data).sort((a, b) => a[0].localeCompare(b[0]))) { for (const message of parseChatMessages(chunk["Selected Text"])) { // JS Time uses milliseconds, thus the * 1000 addMessage(message.author, message.text, chunkId, null, chunk["Time"] * 1000);