Sort after list ressource list insertions

This commit is contained in:
Patrick Jentsch 2021-08-23 16:34:25 +02:00
parent 280c544297
commit 5cd18c4c2a

View File

@ -85,7 +85,9 @@ class RessourceList {
} }
// Set a callback function ('() => {return;}') to force List.js perform the // Set a callback function ('() => {return;}') to force List.js perform the
// add method asynchronous: https://listjs.com/api/#add // add method asynchronous: https://listjs.com/api/#add
this.list.add(ressources, () => {return;}); this.list.add(ressources, () => {
this.list.sort('id', {order: 'desc'});
});
} }
remove(id) { remove(id) {