Skip to content

Commit

Permalink
Order opened tabs by index
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Curious committed Nov 30, 2016
1 parent 6ea4be2 commit 9c7668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quick-tabs/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function drawCurrentTabs() {
// render only the tabs and closed tabs on initial load (hence the empty array [] for bookmarks)
// also drop the first entry since that's the current tab =)
renderTabs({
allTabs: bg.tabs.slice(1),
allTabs: bg.tabs.slice(1).sort(function(aTab, anotherTab) {return aTab.index - anotherTab.index}),
closedTabs: bg.closedTabs,
bookmarks: []
});
Expand Down

0 comments on commit 9c7668d

Please sign in to comment.