carbon-addons-iot-react icon indicating copy to clipboard operation
carbon-addons-iot-react copied to clipboard

[TableColumnCustomizationModal] Option to sort the Available Columns by `name`

Open bogy0 opened this issue 2 years ago • 1 comments

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.

bogy0 avatar Jan 18 '23 12:01 bogy0

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).

Screenshot 2023-01-25 at 3 19 19 PM

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

dianasanborn avatar Jan 25 '23 20:01 dianasanborn