Skip to content

Commit

Permalink
Sort query builder dropdowns alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-crawford committed Oct 16, 2024
1 parent 33dc9fc commit 9a52d93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/data-explorer/query-builder-wrapper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class QueryBuilderWrapperService {
name: enumValue.key,
value: enumValue.value,
};
});
}).sort((a, b) => a.value.localeCompare(b.value));
}

return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ export class QueryBuilderComponent
if (this.entities && entity) {
return this.fields?.filter((field) => {
return field && field.entity === entity;
});
}).sort((a, b) => a.name.localeCompare(b.name));
} else {
return this.fields;
return this.fields?.sort((a, b) => a.name.localeCompare(b.name));
}
}

Expand Down

0 comments on commit 9a52d93

Please sign in to comment.