Skip to content

Commit

Permalink
fix longterm order
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Feb 8, 2024
1 parent 8ffd799 commit 7bcfcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bcfcdf

Please sign in to comment.