From b6da65c021eadc1f1ed473c3cfc42783dc3c083a Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Fri, 5 May 2023 10:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=A8=E9=83=A8=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E6=8E=92=E5=BA=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appdata/plugin/all-app-data-provider.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/appdata/plugin/all-app-data-provider.cpp b/src/appdata/plugin/all-app-data-provider.cpp index 32e0961..bdf2986 100644 --- a/src/appdata/plugin/all-app-data-provider.cpp +++ b/src/appdata/plugin/all-app-data-provider.cpp @@ -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();