diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index cd6afdf5a..e7cd6fea1 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -127,8 +127,6 @@ function remoteProvidersLoaded(loadState) { // Special case gnome-control-center to be always active and always first sortOrder.unshift('gnome-control-center.desktop'); - let numSorted = sortOrder.length; - loadState.loadedProviders.sort( function(providerA, providerB) { let idxA, idxB; @@ -148,15 +146,6 @@ function remoteProvidersLoaded(loadState) { return GLib.utf8_collate(nameA, nameB); } - if (numSorted > 1) { - // if providerA is the last, it goes after everything - if ((idxA + 1) == numSorted) - return 1; - // if providerB is the last, it goes after everything - else if ((idxB + 1) == numSorted) - return -1; - } - // if providerA isn't found, it's sorted after providerB if (idxA == -1) return 1;