.done(function () {
                self.extensions = ExtensionManager.extensions;

                // Sort the registry by last published date and store the sorted list of IDs.
                self.sortedFullSet = registry_utils.sortRegistry(self.extensions, "registryInfo")
                    .filter(function (entry) {
                        return entry.registryInfo !== undefined && entry.registryInfo.metadata.theme;
                    })
                    .map(function (entry) {
                        return entry.registryInfo.metadata.name;
                    });
                self._setInitialFilter();
            })
 ExtensionManagerViewModel.prototype._setSortedExtensionList = function (extensions, isTheme) {
     this.filterSet = this.sortedFullSet = registry_utils.sortRegistry(extensions, "registryInfo", PreferencesManager.get("extensions.sort"))
         .filter(function (entry) {
             if (!isTheme) {
                 return entry.registryInfo && !entry.registryInfo.metadata.theme;
             } else {
                 return entry.registryInfo && entry.registryInfo.metadata.theme;
             }
         })
         .map(function (entry) {
             return entry.registryInfo.metadata.name;
         });
 };
 ExtensionManager.getRegistry().done(function (registry) {
     // Display the registry view.
     self._render(registry_utils.sortRegistry(registry));
 }).fail(function () {
 model.getRegistry().done(function (registry) {
     self._render(registry_utils.sortRegistry(registry));
 }).fail(function () {