diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vs/workbench/contrib/extensions/browser/extensionsViews.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/extensions/browser/extensionsViews.ts b/src/vs/workbench/contrib/extensions/browser/extensionsViews.ts index 7dcadaf6780..cacf2cf72cb 100644 --- a/src/vs/workbench/contrib/extensions/browser/extensionsViews.ts +++ b/src/vs/workbench/contrib/extensions/browser/extensionsViews.ts @@ -744,7 +744,9 @@ export class ExtensionsListView extends ViewPane { break; case SortBy.UpdateDate: extensions = extensions.sort((e1, e2) => - typeof e2.local?.installedTimestamp === 'number' && typeof e1.local?.installedTimestamp === 'number' ? e2.local.installedTimestamp - e1.local.installedTimestamp : NaN); + typeof e2.local?.installedTimestamp === 'number' && typeof e1.local?.installedTimestamp === 'number' ? e2.local.installedTimestamp - e1.local.installedTimestamp : + typeof e2.local?.installedTimestamp === 'number' ? 1 : + typeof e1.local?.installedTimestamp === 'number' ? -1 : NaN); break; case SortBy.AverageRating: case SortBy.WeightedRating: |