Skip to content

Commit

Permalink
fix: sort metadata listing by key name
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYuion committed Apr 16, 2024
1 parent adfa001 commit ae79ce5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/backoffice/src/app/ui/metadata-display.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ export class MetadataDisplayComponent extends AsyncHandler {

private loadMetadata() {
listMetadata(this.item.id).subscribe((map) => {
this.metadata = Object.keys(map).map((key) => map[key]);
this.metadata = Object.keys(map)
.map((key) => map[key])
.sort((a, b) => a.name.localeCompare(b.name));
this.generateForms();
});
}
Expand Down

0 comments on commit ae79ce5

Please sign in to comment.