carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[TableColumnCustomizationModal] Option to sort the Available Columns by `name`
What package is this for?
- [x] React
Summary
Since we have the option to show column name
rather than column id
in the TableColumnCustomizationModal
, then we also need the option to sort by column name so that users are not confused. A user might be looking for a column name and not see it if it is not displayed alphabetically. Also, sorting by name is important when text is translated.
Since this is using the list component and not the data table, we won't have column sorting in the column header. Especially when there are lists with multiple columns, column sorting wouldn't work on the single header.
Though, I've seen teams explore having a sort action paired with the search input. (The example below is not exactly to spec, but to show what I've seen).

Clicking on the sort icon would give you a menu to sort by ascending, descending, etc.