From d3f296e560887afb5e68927ae35dd68114982cfa Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Tue, 10 Nov 2015 16:11:10 -0700 Subject: [PATCH] Fixed sorting --- js/dictionaryBuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dictionaryBuilder.js b/js/dictionaryBuilder.js index 9fa8ad1..2c6a3ae 100644 --- a/js/dictionaryBuilder.js +++ b/js/dictionaryBuilder.js @@ -358,7 +358,7 @@ function LoadDictionary() { HideSettingsWhenComplete(); - ShowDictionary(""); + ShowDictionary(); SetPartsOfSpeech(); @@ -453,7 +453,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; } }