sanity-io / table

Table schema type and input component for Sanity Studio
MIT License
39 stars 11 forks source link

It would be nice to have the ability to denote sort of columns #31

Open JamesSingleton opened 10 months ago

JamesSingleton commented 10 months ago

Is your feature request related to a problem? Please describe. I need to have the ability to sort on a particular column for some of my tables.

Describe the solution you'd like It would be nice if I could state which column to sort of. However, since you can't mark a row as a table header, it's kind of hard to also say that a particular column will also be sorted on.

Describe alternatives you've considered Creating my own table, but I feel like I shouldn't have to do that. Displaying tables in content is common and being able to denote what column to sort the table should be supported.

Additional context I am basically creating tables of people and want to sort of their last time. Right now I would have to manually make sure I add the content in order, sometimes having to redo the entire table if a person needs to be added lets say at the beginning of the table.