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()) {
|
} else if (b.isRecentInstall()) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return a.launchTimes() > b.launchTimes();
|
if (a.launchTimes() == b.launchTimes()) {
|
||||||
|
return letterSort(a.firstLetter(), b.firstLetter());
|
||||||
|
} else {
|
||||||
|
return a.launchTimes() > b.launchTimes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return a.top() > b.top();
|
return a.top() > b.top();
|
||||||
|
|
Loading…
Reference in New Issue