aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.xml2
-rw-r--r--web/app/view/map/MapController.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/debug.xml b/debug.xml
index ceee553ce..099291725 100644
--- a/debug.xml
+++ b/debug.xml
@@ -230,7 +230,7 @@
</entry>
<entry key='database.selectPositions'>
- SELECT * FROM position WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to;
+ SELECT * FROM position WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime;
</entry>
<entry key='database.insertPosition'>
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 98922a307..0aab71725 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -128,9 +128,8 @@ Ext.define('Traccar.view.map.MapController', {
var vectorSource = this.getView().vectorSource;
- var data = Ext.getStore('Positions').getData().clone();
- data.sort('fixTime');
-
+ var data = Ext.getStore('Positions').getData();
+
var index;
var positions = [];
this.reportRoutePoints = {};