Fix stack-amount based ordering

This commit is contained in:
Gabriel Tofvesson 2021-04-24 00:57:24 +02:00
parent a28f82dbc0
commit 720bb91d0e

View File

@ -156,7 +156,7 @@ public class SortCommandExecutor implements CommandExecutor {
// Stacks of similar type are organized according to stack size
if (o1.isSimilar(o2))
return Integer.compare(o1.getAmount(), o2.getAmount());
return -Integer.compare(o1.getAmount(), o2.getAmount());
// Differing stacks are sorted according to enum ordinal (arbitrary but I'm not manually designing an order)
return Integer.compare(m1.ordinal(), m2.ordinal());