diff --git a/src/main/java/com/zerofall/ezstorage/gui/GuiStorageCore.java b/src/main/java/com/zerofall/ezstorage/gui/GuiStorageCore.java index 553d541..60b2f8b 100644 --- a/src/main/java/com/zerofall/ezstorage/gui/GuiStorageCore.java +++ b/src/main/java/com/zerofall/ezstorage/gui/GuiStorageCore.java @@ -2,6 +2,7 @@ import java.text.DecimalFormat; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import net.minecraft.client.gui.FontRenderer; @@ -197,9 +198,6 @@ protected void keyTyped(char typedChar, int keyCode) { super.keyTyped(typedChar, keyCode); } } - if (keyCode == 63) { - this.tileEntity.sortInventory(); - } } private void updateFilteredItems() { @@ -218,6 +216,8 @@ private void updateFilteredItems() { } else { filterItems(searchText.toLowerCase()); } + + Collections.sort(filteredList, new ItemGroup.CountComparator()); } private void filterItems(String searchText) {