Changeset 5564 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-11-04T11:22:18+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r5502 r5564 18 18 import java.util.ArrayList; 19 19 import java.util.Collection; 20 import java.util.Collections; 21 import java.util.Comparator; 20 22 import java.util.List; 21 23 … … 199 201 MarkerLayer layer = (MarkerLayer)from; 200 202 data.addAll(layer.data); 203 Collections.sort(data, new Comparator<Marker>() { 204 @Override 205 public int compare(Marker o1, Marker o2) { 206 return Double.compare(o1.time, o2.time); 207 } 208 }); 201 209 } 202 210
Note:
See TracChangeset
for help on using the changeset viewer.