Skip to content

Commit

Permalink
Merge pull request #13 from warrenbuckley/sort-examine-alpha
Browse files Browse the repository at this point in the history
Sort the properties from Examine Index entry alphabetically
  • Loading branch information
warrenbuckley authored Dec 10, 2024
2 parents 3502b0f + cd56201 commit 34895f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExaminePeek/Client/src/Modals/examinepeek.modal.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class ExaminePeekmModalElement extends UmbModalBaseElement<ExaminePeekMod

// Convert the record to an array of entries, sort them by key, then iterate over them
Object.entries(this.examineRecord?.values ?? {})
.sort(([a],[b]) => a.localeCompare(b))
.forEach(([key, value]) => {
listItems.push(html`
<umb-property-layout label="${key}">
Expand Down

0 comments on commit 34895f5

Please sign in to comment.