mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs(docs-infra): remove sorting from API manager (#59427)
fixes #59423 PR Close #59427
This commit is contained in:
parent
4c12f07970
commit
69aa4e91f5
1 changed files with 9 additions and 11 deletions
|
|
@ -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,
|
||||
};
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue