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

View file

@ -59,7 +59,6 @@ public class EnergyGridCache implements IEnergyGrid
/**
* excess power in the system.
*/
double prev_extra = 0;
double extra = 0;
IAEPowerStorage lastProvider;

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 ) );
}
};