Librarian view: Add functionality to sort by columns
As a librarian, I want to be able to sort & reverse sort by columns in various views in the admin screen, so that I can more easily find specific information (e.g., finding one of many members named "Al," since "al" is a common string in member names).
This could happen in several places. Roughly in order of priority:
- members screen (https://circulate-staging.herokuapp.com/admin/members)
- loans screen (https://circulate-staging.herokuapp.com/admin/loan_summaries)
- holds screen (https://circulate-staging.herokuapp.com/admin/holds)
Ideally there's an up or down arrow next to the column name, the default sort is indicated by an arrow at the beginning, and clicking on a name already sorted by reverses the existing sort. But open to different/easier implementations.
@rkim00 Hi! I saw that there is a toggle button with order field ("sort by"). Should we remove it when implements order in columns?
Hi @italomatos . Which page are you referring to?
@rkim00 Hi! I saw that there is a toggle button with order field ("sort by"). Should we remove it when implements order in columns?
@italomatos I see what you're referring to now, on the Members page. Yes, I think we could remove it, assuming that the implementation in columns is sufficiently intuitive for a user. Try it and see what you think!
@rkim00 thank you, I will get this card and open a PR :)