aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r--web/app/controller/Root.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index c1700aa0..935b1f15 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -295,7 +295,7 @@ Ext.define('Traccar.controller.Root', {
var i, store, device;
store = Ext.getStore('Events');
for (i = 0; i < array.length; i++) {
- store.add(array[i]);
+ store.insert(0, array[i]);
device = Ext.getStore('Devices').getById(array[i].deviceId);
if (device) {
if (this.soundPressed()) {