@@ -21,7 +21,7 @@ import * as Permissions from '/common/permissions.js';
2121import * as TabsStore from '/common/tabs-store.js' ;
2222import * as TSTAPI from '/common/tst-api.js' ;
2323
24- import { Tab } from '/common/TreeItem.js' ;
24+ import { Tab , TreeItem } from '/common/TreeItem.js' ;
2525
2626import * as TabsGroup from './tabs-group.js' ;
2727import * as TabsOpen from './tabs-open.js' ;
@@ -180,7 +180,7 @@ async function tryGroupTabBunches() {
180180 if ( fromPinned . length > 0 &&
181181 ( configs . autoGroupNewTabsFromPinned ||
182182 configs . autoGroupNewTabsFromFirefoxView ) ) {
183- const newRootTabs = Tab . collectRootTabs ( Tab . sort ( fromPinned ) ) ;
183+ const newRootTabs = Tab . collectRootTabs ( TreeItem . sort ( fromPinned ) ) ;
184184 if ( newRootTabs . length > 0 ) {
185185 await tryGroupTabBunchesFromPinnedOpener ( newRootTabs ) ;
186186 }
@@ -190,7 +190,7 @@ async function tryGroupTabBunches() {
190190 // sources won't be mixed.
191191 const openedFromBookmarkFolder = fromOthers . length > 0 && await detectBookmarkFolderFromTabs ( fromOthers , tabReferences . length ) ;
192192 log ( ' => tryGroupTabBunches:openedFromBookmarkFolder: ' , ! ! openedFromBookmarkFolder ) ;
193- const newRootTabs = Tab . collectRootTabs ( Tab . sort ( openedFromBookmarkFolder ? openedFromBookmarkFolder . tabs : fromOthers ) ) ;
193+ const newRootTabs = Tab . collectRootTabs ( TreeItem . sort ( openedFromBookmarkFolder ? openedFromBookmarkFolder . tabs : fromOthers ) ) ;
194194 log ( ' newRootTabs: ' , newRootTabs ) ;
195195 if ( newRootTabs . length > 1 &&
196196 ! openedFromBookmarkFolder && // we should ignore tabs from bookmark folder: they should be handled by tryHandlTabBunchesFromBookmarks
@@ -442,7 +442,7 @@ async function tryHandlTabBunchesFromBookmarks() {
442442 }
443443 }
444444
445- const newRootTabs = Tab . collectRootTabs ( Tab . sort ( openedFromBookmarkFolder . tabs ) ) ;
445+ const newRootTabs = Tab . collectRootTabs ( TreeItem . sort ( openedFromBookmarkFolder . tabs ) ) ;
446446 if ( newRootTabs . length > 1 &&
447447 configs . autoGroupNewTabsFromBookmarks &&
448448 tabReferences . every ( tabReference => ! tabReference . shouldNotGrouped ) ) {
0 commit comments