1settings.SearchEnginesBrowserProxyImpl.prototype.getSearchEnginesList()
2 .then(function(val) {
3 val.others.sort(function(a, b) { return b.modelIndex - a.modelIndex; });
4 val.others.forEach(function(engine) {
5 settings.SearchEnginesBrowserProxyImpl.prototype.removeSearchEngine(engine.modelIndex);
6 });
7 });
8