We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2643c25 commit 94239cdCopy full SHA for 94239cd
src/compositions/all-tab-list-summary.ts
@@ -12,6 +12,10 @@ export async function useAllTabListSummary(sortingBy: SortingBy): Promise<TabLis
12
return b.summaryTime - a.summaryTime;
13
});
14
15
+ tabs = unSortedTabs.sort(function (a: Tab, b: Tab) {
16
+ return sortingBy == SortingBy.UsageTime ? b.summaryTime - a.summaryTime : b.counter - a.counter;
17
+ });
18
+
19
const summaryTimeList = tabs?.map(function (tab) {
20
return tab.summaryTime;
21
0 commit comments