Fixes #3520: Correct order for sort by mod and general code cleanup (#3517)

Comparable/Comparator implementation now use fast Java built-ins for
primitive types rather than hand-coded versions. Also DRY some code
and simplify logic.

This maintains the "biggest stack first" notion of "ascending", but
also fixes the inconsistent/accidental reversal of sort by mod (the
mod name should sort the same direction as the item name).
This commit is contained in:
Kyle VanderBeek
2018-06-02 02:05:44 -07:00
committed by yueh
parent 3c4a0cae11
commit f4212a86c3
3 changed files with 24 additions and 30 deletions
@@ -70,4 +70,4 @@ public class CraftingCPURecord implements Comparable<CraftingCPURecord>
{
return this.size;
}
}
}