diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/model/Geofavorite.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/model/Geofavorite.java index 47ee8b4..2996bb9 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/model/Geofavorite.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/model/Geofavorite.java @@ -148,8 +148,8 @@ public class Geofavorite implements Serializable { this.comment = comment; } - public static Comparator ByTitleAZ = (note, t1) -> note.name.compareTo(t1.name); - public static Comparator ByLastCreated = (note, t1) -> t1.id - note.id; + public static Comparator ByTitleAZ = (gf0, gf1) -> gf0.name.compareTo(gf1.name); + public static Comparator ByLastCreated = (gf0, gf1) -> (int) (gf1.dateCreated - gf0.dateCreated); public String getCoordinatesString() { return this.lat + " N, " + this.lng + " E";