From 9c7668dea49aba6e2babee458807e3a251f76a4c Mon Sep 17 00:00:00 2001 From: Code-Curious Date: Wed, 30 Nov 2016 11:38:46 +0000 Subject: [PATCH] Order opened tabs by index --- quick-tabs/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick-tabs/popup.js b/quick-tabs/popup.js index a87745c..341b8ff 100644 --- a/quick-tabs/popup.js +++ b/quick-tabs/popup.js @@ -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: [] });