From 94b43b99d627c2c091b1d88578ea35103463ec43 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Tue, 10 Nov 2015 15:49:21 -0700 Subject: [PATCH] Force sort to ignore case. --- js/dictionaryBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dictionaryBuilder.js b/js/dictionaryBuilder.js index a4cc0b9..95bf025 100644 --- a/js/dictionaryBuilder.js +++ b/js/dictionaryBuilder.js @@ -439,7 +439,7 @@ function dynamicSort(property) { property = property.substr(1); } return function (a, b) { - var result = (a[property] < b[property]) ? -1 : (a[property] > b[property]) ? 1 : 0; + var result = (a[property].toLowerCase() < b[property].toLowerCase()) ? -1 : (a[property].toLowerCase() > b[property].toLowerCase()) ? 1 : 0; return result * sortOrder; } }