Skip to content

Commit

Permalink
For #85 - load device markers sorted by IDs in descending order
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed May 25, 2015
1 parent 4371dba commit b1230f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ public void saveGeoFenceShare(GeoFence geoFence, Map<User, Boolean> share) {
@RequireUser
@Override
public List<DeviceIcon> getMarkerPictures() {
return getSessionEntityManager().createQuery("SELECT i FROM DeviceIcon i ORDER BY i.id", DeviceIcon.class)
return getSessionEntityManager().createQuery("SELECT i FROM DeviceIcon i ORDER BY i.id DESC", DeviceIcon.class)
.getResultList();
}
}

0 comments on commit b1230f0

Please sign in to comment.