UI: Change sort order to show own before incoming shares

This commit is contained in:
Max Berger
2026-05-02 22:24:13 +02:00
parent 16a0592e5d
commit 67aa15b32d
4 changed files with 136 additions and 6 deletions

View File

@@ -103,11 +103,6 @@ export function get_collections(user, password, collection, callback) {
collections.push(parsedCollection);
}
}
collections.sort(function (a, b) {
/** @type {string} */ let ca = a.displayname || a.href;
/** @type {string} */ let cb = b.displayname || b.href;
return ca.localeCompare(cb);
});
callback(collections, null);
} else {
callback(null, "No valid XML received");