From 783a847978bcd6b42a5cdfd6da4bc1a65a5f600c Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Wed, 13 Sep 2023 16:37:44 +0200 Subject: [PATCH] Fix typo --- javascript/_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/_utils.js b/javascript/_utils.js index 069ee2e..4050f29 100644 --- a/javascript/_utils.js +++ b/javascript/_utils.js @@ -213,12 +213,12 @@ function observeElement(element, property, callback, delay = 0) { // Sort functions function getSortFunction() { - let criterium = TAC_CFG.modelSortOrder || "Name"; + let criterion = TAC_CFG.modelSortOrder || "Name"; return (a, b) => { let textHolderA = a.type === ResultType.chant ? a.aliases : a.text; let textHolderB = b.type === ResultType.chant ? b.aliases : b.text; - switch (criterium) { + switch (criterion) { case "Date Modified": let aParsed = parseFloat(a.sortKey || "-1"); let bParsed = parseFloat(b.sortKey || "-1");