Removed random value.

compareToIgnoreCase instead of compareTo
This commit is contained in:
AlgorithmX2
2014-02-05 22:47:52 -06:00
parent f295669e6e
commit 071c10f94b
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ public class ItemSorters
public int compare(IAEItemStack o1, IAEItemStack o2)
{
if ( Direction == SortDir.ASCENDING )
return Platform.getItemDisplayName( o1 ).toLowerCase().compareTo( Platform.getItemDisplayName( o2 ).toLowerCase() );
return Platform.getItemDisplayName( o2 ).toLowerCase().compareTo( Platform.getItemDisplayName( o1 ).toLowerCase() );
return Platform.getItemDisplayName( o1 ).compareToIgnoreCase( Platform.getItemDisplayName( o2 ) );
return Platform.getItemDisplayName( o2 ).compareToIgnoreCase( Platform.getItemDisplayName( o1 ) );
}
};