fix(web): albums display order again (#17117)

This commit is contained in:
Alex 2025-03-25 17:14:00 -05:00 committed by GitHub
parent 75df8fc10e
commit 392ce7deb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,10 +331,10 @@ export class AssetBucket {
sortDateGroups() {
if (this.#sortOrder === AssetOrder.Asc) {
this.dateGroups.sort((a, b) => a.date.diff(b.date).milliseconds);
return this.dateGroups.sort((a, b) => a.date.diff(b.date).milliseconds);
}
this.dateGroups.sort((a, b) => b.date.diff(a.date).milliseconds);
return this.dateGroups.sort((a, b) => b.date.diff(a.date).milliseconds);
}
runAssetOperation(ids: Set<string>, operation: AssetOperation) {