diff --git a/.changeset/happy-buses-occur.md b/.changeset/happy-buses-occur.md new file mode 100644 index 000000000..e4e8b3445 --- /dev/null +++ b/.changeset/happy-buses-occur.md @@ -0,0 +1,5 @@ +--- +"@hyperdx/app": patch +--- + +feat: Sort dashboard filter options diff --git a/packages/app/src/DashboardFilters.tsx b/packages/app/src/DashboardFilters.tsx index 63cb54392..03b5ec533 100644 --- a/packages/app/src/DashboardFilters.tsx +++ b/packages/app/src/DashboardFilters.tsx @@ -54,16 +54,19 @@ const DashboardFilterSelect = ({ }, ); + const selectValues = keys?.[0]?.value + .map(value => String(value)) + .sort() + .map(value => ({ + value, + label: value, + })); + return (