From 7bcfcdf934bd31db15b36a2b2e007d4e1691a855 Mon Sep 17 00:00:00 2001 From: TA2k Date: Thu, 8 Feb 2024 09:38:21 +0100 Subject: [PATCH] fix longterm order --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 070417f..524419c 100644 --- a/main.js +++ b/main.js @@ -2900,7 +2900,7 @@ class VwWeconnect extends utils.Adapter { if (res.data && res.data.data) { //sort by id res.data.data.sort((a, b) => { - return a.id - b.id; + return b.id - a.id; }); if (this.config.numberOfTrips > 0) { res.data.data = res.data.data.slice(0, this.config.numberOfTrips);