Sort the table filter options by name

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
Dominik Henneke
2021-04-19 19:39:37 +02:00
parent 2f423757d2
commit 94da209767
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
Sort the table filter options by name.
+1 -1
View File
@@ -363,7 +363,7 @@ export function Table<T extends object = {}>({
placeholder: 'All results',
label: filter.column,
multiple: filter.type === 'multiple-select',
items: [...extractDistinctValues(filter.column)].map(value => ({
items: [...extractDistinctValues(filter.column)].sort().map(value => ({
label: value,
value,
})),