From 9c61b2b945df84534fceefdc3747af96ac340dc8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 31 Jan 2017 00:16:43 -0700 Subject: [PATCH] Use natural sort --- core/conf_area_util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/conf_area_util.js b/core/conf_area_util.js index 5d122cc5..5dabfb73 100644 --- a/core/conf_area_util.js +++ b/core/conf_area_util.js @@ -24,7 +24,7 @@ function sortAreasOrConfs(areasOrConfs, type) { } else { const keyA = entryA.sort ? entryA.sort.toString() : entryA.name; const keyB = entryB.sort ? entryB.sort.toString() : entryB.name; - return keyA.localeCompare(keyB); + return keyA.localeCompare(keyB, { sensitivity : false, numeric : true } ); // "natural" compare } }); } \ No newline at end of file