diff --git a/website/client/src/components/inventory/stable/index.vue b/website/client/src/components/inventory/stable/index.vue index 573abe4053..1f9f06d1af 100644 --- a/website/client/src/components/inventory/stable/index.vue +++ b/website/client/src/components/inventory/stable/index.vue @@ -767,7 +767,6 @@ export default { case 'sortByHatchable': { if (isPetList) { const sortFunc = i => (i.isHatchable() ? 0 : 1); - animals = _sortBy(animals, [sortFunc]); } break; @@ -800,8 +799,10 @@ export default { groupKey = 'potionKey'; } else if (sortBy === 'AZ') { groupKey = ''; + } else if (sortBy === 'sortByHatchable') { + groupKey = i => (i.isHatchable() ? 0 : 1); } - + return groupBy(pets, groupKey); }, mounts (animalGroup, hideMissing, sortBy, searchText) {