case insensitive list sorting
This commit is contained in:
parent
7aac57dc8d
commit
695b9a3d72
1 changed files with 10 additions and 10 deletions
|
@ -468,7 +468,7 @@ export default new Vuex.Store({
|
||||||
state[stateName].push(item);
|
state[stateName].push(item);
|
||||||
db.updateDocument(key, {[key]: state[stateName]});
|
db.updateDocument(key, {[key]: state[stateName]});
|
||||||
if (listItems[listName].sort)
|
if (listItems[listName].sort)
|
||||||
state[stateName].sort();
|
state[stateName].sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeListItem(state, {item, listName}) {
|
removeListItem(state, {item, listName}) {
|
||||||
|
|
Loading…
Reference in a new issue