If I click the state column header, the games should be sorted by state.
Default sorting is by id: :asc
Maybe we should consider the default as created_at: :desc? 🤔
For the UI, we don't want text decoration (i.e. the column name should be as we had it before)
The column that is sorted now, will have an indicator (up arrow ^ or down arrow v, based on direction). The others won't have it
Use-cases:
Open the page, they are sorted from the newest to the latest
I click on the state column, they are sorted by state: :asc
I click on the state column, they are sorted by state: :desc
I click on the state column, they are sorted by state: :asc
I click on the id column, they are sorted by id: :asc
I click on the state column, they are sorted by state: :asc
If I click the
state
column header, the games should be sorted by state. Default sorting is byid: :asc
Maybe we should consider the default ascreated_at: :desc
? 🤔For the UI, we don't want text decoration (i.e. the column name should be as we had it before) The column that is sorted now, will have an indicator (up arrow
^
or down arrowv
, based on direction). The others won't have itUse-cases:
state
column, they are sorted bystate: :asc
state
column, they are sorted bystate: :desc
state
column, they are sorted bystate: :asc
id
column, they are sorted byid: :asc
state
column, they are sorted bystate: :asc
id
, sort byid: :asc