Skip to content
Snippets Groups Projects

Resolve "Playername and sort for viewhs4game"

Merged Haakon Gunleiksrud requested to merge 55-playername-and-sort-for-viewhs4game into dev
Files
3
@@ -2,6 +2,8 @@ package com.gameware.game.models;
import com.badlogic.gdx.utils.Json;
import java.util.Comparator;
public class Highscore {
private String _id;
private String gameId;
@@ -57,4 +59,9 @@ public class Highscore {
return report();
}
public static Comparator<Highscore> hsValueComparator = new Comparator<Highscore>() {
public int compare(Highscore hs1, Highscore hs2) {
return (int) (hs2.getValue() - hs1.getValue());
}};
}
Loading