Sort table options alphabetically

It would be helpful to be able to sort the option values for a table column, for example when using the Avatar type, if there are many option values, I'd like to be able to alphabetically sort them. Right now, with along list of options, it's difficult to navigate them to update them as I wish.

1 Like

Presumably this would be for a manually entered list of options. For a mapped array, you can sort the array on the way in.

Hi @mbgs, as @jg80 mentioned, we could use order by in our query to sort the values before they get to the component and map the content. For a 'manually entered list,' we could use a JS query to sort it and point to it with mapped content as well. For example, here is an array of numbers we are sorting for the options:

Result: