drvic10k / bootstrap-sortable

adding sorting ability to bootstrap table
MIT License
513 stars 131 forks source link

Ascending/Descending arrow indication #34

Closed Untit1ed closed 10 years ago

Untit1ed commented 10 years ago

Ascending (going up) sort option should be indicated by an arrow pointing up and descending by an arrow pointing down.

Image http://ux.stackexchange.com/questions/37564/use-up-or-down-arrow-to-represent-sort-ascending-at-table-header

drvic10k commented 10 years ago

this was already discussed before it's not that clear, there are also opposite opinions and also this was the first implementation and changing it would break the behaviour therefore I decided to leave the default as it is and I added a modifier as stated in the readme:

You can choose the sign that show the sort direcion. Default is the arrow pointing towards the heigher value.

This proved to be contra-intuitive for some, so you can change it to opposite using the second parameter: $.bootstrapSortable(applyLast, 'reversed')

Untit1ed commented 10 years ago

I'm not sure how it's not clear and possibly confusing, "ascending" literally means "going up" and up arrow became a defacto standard representation of an ascending order. But if it was already discussed i'm going to close this.

drvic10k commented 10 years ago

ascending means "going up", but the table goes down, so it might be confusing Now there is a way for everyone to have it as desired, even with more literal signs a..z and 1..9