Skip to content

Commit

Permalink
#1275 Sorting the properties by name
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jul 29, 2024
1 parent 563f81b commit 726a594
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function PropertiesSection({entityType, entityId}) {
)

const initialProperties = data.entity.properties
.sort((a, b) => a.type.name.localeCompare(b.type.name))

const transformedProperties = await Promise.all(
initialProperties.map(async (property) => {
Expand Down

0 comments on commit 726a594

Please sign in to comment.