mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
Fixes equipment sorting by name in inventory (#9692)
* returns items sorted in ascending order when sorted by name * returns items sorted in ascending order when sorted by name
This commit is contained in:
parent
f6ac7b890a
commit
c531239618
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ export default {
|
|||
});
|
||||
},
|
||||
sortItems (items, sortBy) {
|
||||
return _reverse(_sortBy(items, sortGearTypeMap[sortBy]));
|
||||
return sortBy === 'sortByName' ? _sortBy(items, sortGearTypeMap[sortBy]) : _reverse(_sortBy(items, sortGearTypeMap[sortBy]));
|
||||
},
|
||||
drawerToggled (newState) {
|
||||
this.$store.state.equipmentDrawerOpen = newState;
|
||||
|
|
|
|||
Loading…
Reference in a new issue