Removed random value.
compareToIgnoreCase instead of compareTo
This commit is contained in:
Vendored
-1
@@ -59,7 +59,6 @@ public class EnergyGridCache implements IEnergyGrid
|
||||
/**
|
||||
* excess power in the system.
|
||||
*/
|
||||
double prev_extra = 0;
|
||||
double extra = 0;
|
||||
|
||||
IAEPowerStorage lastProvider;
|
||||
|
||||
@@ -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 ) );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user