Skip to content

Commit

Permalink
fix: order relations by entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Feb 17, 2025
1 parent 418ddf9 commit d509e02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/DocumentPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ function init() {
).then((docs) => {
relationSummaries.value = relationSummaries.value.concat(docs);
});
})
.then(() => {
// sort by entity type
relationSummaries.value.sort((a, b) => a.entity_type.localeCompare(b.entity_type));
});
}
Expand Down

0 comments on commit d509e02

Please sign in to comment.