-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort::link() - three states toggle #26
Comments
There's no such thing as no sort. Results are always sorted somehow. |
This might get handy only in case where you can sort by multiple columns. For single column sort this is pointless. |
Thank you for putting effort in the improvement of the Yii framework. Unfortunately a use case is missing. It is required to get a better understanding of the issue and helps us to determine the necessity and applicability of the suggested change to the framework. Could you supply us with a use case please? Please be as detailed as possible and show some code! Thanks! This is an automated comment, triggered by adding the label |
Yes, for single column sort it may be pointless. My point is: when a multisort is enabled there are cases when toggling back and forth by additional column(s) does not return resulting table view to the state it had before sorting was applied by this column. So user clicks sorting by second column and after this moment he is unable to return his view to previous state because toggling aplies sorting anyway, and he had to reload the whole page and start applying sorts from the beginning. |
OK. That makes sense but it should be optional and used only when multiple columns are used. |
How do you propose to handle this because user does not expect third click to remove sorting on the column. |
With a special × icon? |
Maybe we could add arrow icons as well to quickly get the desired sorting order? |
Both sort asc and sort desc have their own css styles applied to links with bootstrap glyphicons, so why not apply some css for third state? Regarding:
... when I was clicking sort for the first time in Yii and it didn't removed on third click, I was surprised. So, it's personal perception - some users expects this, while others don't. |
This is interesting. What other software uses that approach? |
Angular UI grid, if I'm not mistaken. |
People are already trained in Google Sheets, Excel, Analytics, AdWords, and all myriads of applications out there (Amazon, eBay, etc). What is Default Sort Order? How Should ASC/DESC Sort Order Work? Example
When user clicks Ascending on Name this should turn into
By eliminating the Default it blocks the user to his 2 states not allowing him to easily and quickly go back to the Application Defined best sort option. Anyone has a patch for Sort class? |
Sort Widget supports only two toggle states: first is default sorting, second is opposite to default sorting. It's unable to reset sorting by some field using Sort::link().
Link should have three states: default sort ->opposite sort -> no sort -> default sort -> opposite sort -> no sort ... etc., including the multisort.
The text was updated successfully, but these errors were encountered: