From 5a1384464fce570ea04e978883274f19008526de Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 7 Jan 2018 11:38:49 -0700 Subject: [PATCH] Fix sorting words, which I guess I broke --- src/managers/DictionaryData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/DictionaryData.js b/src/managers/DictionaryData.js index 9a452be..f56daba 100644 --- a/src/managers/DictionaryData.js +++ b/src/managers/DictionaryData.js @@ -328,7 +328,7 @@ class DictionaryData { if (this.sortByDefinition) { return wordDb.words.toCollection().sortBy('definition'); } - return wordDb.words.toArray(); + return wordDb.words.orderBy('name').toArray(); } wordsWithPartOfSpeech (partOfSpeech) {