Fix activity ordering incosistency

The other ordering options order from bottom to top by default, this should too.
This commit is contained in:
psikoi
2018-08-16 16:59:03 +01:00
parent 7033e4632a
commit 3e9373cc32

View File

@@ -123,7 +123,7 @@ class WorldSwitcherPanel extends PluginPanel
case PLAYERS:
return Integer.compare(r1.getUpdatedPlayerCount(), r2.getUpdatedPlayerCount()) * (ascendingOrder ? 1 : -1);
case ACTIVITY:
return r1.getWorld().getActivity().compareTo(r2.getWorld().getActivity()) * (ascendingOrder ? 1 : -1);
return r1.getWorld().getActivity().compareTo(r2.getWorld().getActivity()) * -1 * (ascendingOrder ? 1 : -1);
default:
return 0;