diff --git a/client/src/components/Inventory.tsx b/client/src/components/Inventory.tsx index d0c2ecc..0b590b7 100644 --- a/client/src/components/Inventory.tsx +++ b/client/src/components/Inventory.tsx @@ -64,8 +64,9 @@ function InventoryList({items, docType, openDoc, defaultTab=null, level=undefine }
{ [...items].sort( - // Sort entries `available > disabled > locked`. - (x, y) => +x.locked - +y.locked || +x.disabled - +y.disabled + // For lemas, sort entries `available > disabled > locked` + // otherwise alphabetically + (x, y) => +(docType == "Lemma") * (+x.locked - +y.locked || +x.disabled - +y.disabled) ).map(item => { if ((tab ?? categories[0]) == item.category) { return {openDoc(item.name, docType)}}