Merge pull request #34848 from ishtiyaq130/feat-sort-desktop
feat: sort the desktop icon
This commit is contained in:
commit
fe9bf94eb5
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue