docs(docs-infra): remove sorting from API manager (#59427)

fixes #59423

PR Close #59427
This commit is contained in:
Matthieu Riegler 2025-01-08 16:32:05 +01:00 committed by kirjs
parent 4c12f07970
commit 69aa4e91f5

View file

@ -28,17 +28,15 @@ export class ApiReferenceManager {
groups.push({
title: module.moduleLabel.replace('@angular/', ''),
id: module.normalizedModuleName,
items: module.entries
.map((api) => {
const url = getApiUrl(module, api.name);
return {
itemType: api.type,
title: api.name,
isDeprecated: !!api.isDeprecated,
url,
};
})
.sort((a, b) => a.title.localeCompare(b.title)),
items: module.entries.map((api) => {
const url = getApiUrl(module, api.name);
return {
itemType: api.type,
title: api.name,
isDeprecated: !!api.isDeprecated,
url,
};
}),
});
}