Added Feature: #0501 - Sorting by Mods

This commit is contained in:
AlgorithmX2
2014-08-05 23:30:59 -05:00
parent 12ec82d1b4
commit 8a194903d8
4 changed files with 29 additions and 2 deletions
+3 -1
View File
@@ -275,7 +275,9 @@ public class ItemRepo
ItemSorters.Direction = (appeng.api.config.SortDir) SortDir;
ItemSorters.init();
if ( SortBy == SortOrder.AMOUNT )
if ( SortBy == SortOrder.MOD )
Collections.sort( view, ItemSorters.ConfigBased_SortByMod );
else if ( SortBy == SortOrder.AMOUNT )
Collections.sort( view, ItemSorters.ConfigBased_SortBySize );
else if ( SortBy == SortOrder.INVTWEAKS )
Collections.sort( view, ItemSorters.ConfigBased_SortByInvTweaks );