Removed random value.
compareToIgnoreCase instead of compareTo
This commit is contained in:
parent
f295669e6e
commit
071c10f94b
1
me/cache/EnergyGridCache.java
vendored
1
me/cache/EnergyGridCache.java
vendored
|
@ -59,7 +59,6 @@ public class EnergyGridCache implements IEnergyGrid
|
||||||
/**
|
/**
|
||||||
* excess power in the system.
|
* excess power in the system.
|
||||||
*/
|
*/
|
||||||
double prev_extra = 0;
|
|
||||||
double extra = 0;
|
double extra = 0;
|
||||||
|
|
||||||
IAEPowerStorage lastProvider;
|
IAEPowerStorage lastProvider;
|
||||||
|
|
|
@ -34,8 +34,8 @@ public class ItemSorters
|
||||||
public int compare(IAEItemStack o1, IAEItemStack o2)
|
public int compare(IAEItemStack o1, IAEItemStack o2)
|
||||||
{
|
{
|
||||||
if ( Direction == SortDir.ASCENDING )
|
if ( Direction == SortDir.ASCENDING )
|
||||||
return Platform.getItemDisplayName( o1 ).toLowerCase().compareTo( Platform.getItemDisplayName( o2 ).toLowerCase() );
|
return Platform.getItemDisplayName( o1 ).compareToIgnoreCase( Platform.getItemDisplayName( o2 ) );
|
||||||
return Platform.getItemDisplayName( o2 ).toLowerCase().compareTo( Platform.getItemDisplayName( o1 ).toLowerCase() );
|
return Platform.getItemDisplayName( o2 ).compareToIgnoreCase( Platform.getItemDisplayName( o1 ) );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue