Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
m-casanova authored Aug 26, 2024
1 parent 9e1b1ca commit f6bfd1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ function aggiorna(cat, eid) {
}

const variaz = Object.entries(variaz1);
variaz.sort((a, b) => vData(a[1].d) - vData(b[1].d) || a[1].p - b[1].p );
variaz.sort((a, b) => {
if (a[1].d != b[1].d) return vData(a[1].d) - vData(b[1].d);
if (db_doc[a[1].p].d1 && db_doc[b[1].p].d1) return db_doc[a[1].p].d1 - db_doc[b[1].p].d1;
return false;
});

let ultimaData;
let ultimoProvv;
Expand Down

0 comments on commit f6bfd1d

Please sign in to comment.