lowercase service for alphabetic sorting (#2008)

This commit is contained in:
Matt Hill
2022-12-01 08:13:54 -07:00
committed by GitHub
parent 07f5f3f1bb
commit 79fb8de7b7

View File

@@ -19,7 +19,11 @@ export class AppListPage {
return !length || prev.length !== length
}),
map(([_, pkgs]) =>
pkgs.sort((a, b) => (b.manifest.title > a.manifest.title ? -1 : 1)),
pkgs.sort((a, b) =>
b.manifest.title.toLowerCase() > a.manifest.title.toLowerCase()
? -1
: 1,
),
),
)