Browse Source

Don't sort extension search alphabetically

Sorting the extensions alphabetically gives more visibility to packages early in the alphabet. Instead, retain the sort order from the registry, which is based on a composite score including:
- How well the package matches the search text.
- A package "score": https://docs.npmjs.com/searching-for-and-choosing-packages-to-download#package-search-rank-criteria
Vidar Tonaas Fauske 6 năm trước cách đây
mục cha
commit
17b9139c98
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      packages/extensionmanager/src/model.ts

+ 2 - 1
packages/extensionmanager/src/model.ts

@@ -738,7 +738,8 @@ namespace Private {
     let testB = isJupyterOrg(b.name);
 
     if (testA === testB) {
-      return a.name.localeCompare(b.name);
+      // Retain sort-order from API
+      return 0;
     } else if (testA && !testB) {
       return -1;
     } else {