Merge pull request #34848 from ishtiyaq130/feat-sort-desktop

feat: sort the desktop icon
This commit is contained in:
Soham Kulkarni 2025-11-23 22:37:10 +05:30 committed by GitHub
commit fe9bf94eb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,8 +278,8 @@ class DesktopIconGrid {
}
prepare() {
this.icons_data = this.icons_data.sort((a, b) => a.idx - b.idx);
this.total_pages = 1;
this.icons_data = this.icons_data.sort((a, b) => a.name.localeCompare(b.name));
this.icons_data_by_page =
this.icons_data || this.split_data(this.icons_data, this.page_size.total());
}