whoops wrong order

This commit is contained in:
Leijurv 2018-08-23 09:56:57 -07:00
parent 3ce764a472
commit a7abfef329
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -127,7 +127,7 @@ public class ExampleBaritoneControl extends Behavior {
Set<Waypoint> waypoints = WorldProvider.INSTANCE.getCurrentWorld().waypoints.getByTag(tag);
// might as well show them from oldest to newest
List<Waypoint> sorted = new ArrayList<>(waypoints);
sorted.sort(Comparator.comparingLong(Waypoint::creationTimestamp).reversed());
sorted.sort(Comparator.comparingLong(Waypoint::creationTimestamp));
displayChatMessageRaw("Waypoints under tag " + tag + ":");
for (Waypoint waypoint : sorted) {
displayChatMessageRaw(waypoint.toString());