Sort the table filter options by name
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core': patch
|
||||
---
|
||||
|
||||
Sort the table filter options by name.
|
||||
@@ -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,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user