From b1230f0645bb3427a8e5305b2662f9733f2eae12 Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Mon, 25 May 2015 08:52:20 +0300 Subject: [PATCH] For #85 - load device markers sorted by IDs in descending order --- src/main/java/org/traccar/web/server/model/DataServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/traccar/web/server/model/DataServiceImpl.java b/src/main/java/org/traccar/web/server/model/DataServiceImpl.java index ac559b9e..9f762c9e 100644 --- a/src/main/java/org/traccar/web/server/model/DataServiceImpl.java +++ b/src/main/java/org/traccar/web/server/model/DataServiceImpl.java @@ -773,7 +773,7 @@ public void saveGeoFenceShare(GeoFence geoFence, Map share) { @RequireUser @Override public List 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(); } }