forked from openkylin/ukui-menu
修改全部应用排序bug
This commit is contained in:
parent
34f33a8dfc
commit
b6da65c021
|
@ -171,7 +171,11 @@ bool AllAppDataProvider::appDataSort(const DataEntity &a, const DataEntity &b)
|
|||
} else if (b.isRecentInstall()) {
|
||||
return false;
|
||||
} else {
|
||||
return a.launchTimes() > b.launchTimes();
|
||||
if (a.launchTimes() == b.launchTimes()) {
|
||||
return letterSort(a.firstLetter(), b.firstLetter());
|
||||
} else {
|
||||
return a.launchTimes() > b.launchTimes();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return a.top() > b.top();
|
||||
|
|
Loading…
Reference in New Issue