fixed-data-table-2 icon indicating copy to clipboard operation
fixed-data-table-2 copied to clipboard

Sort arrow is backwards

Open Tsmith18256 opened this issue 8 years ago • 6 comments

Expected Behavior

  • When sorting a column in ascending order, the arrow should point up.
  • When sorting a column in descending order, the arrow should point down.

Current Behavior

The arrow points in the directions opposite to those mentioned above.

Possible Solution

Reverse the order of the arrow.

Steps to Reproduce (for bugs)

Open the client-side sort example and sort a column.

Context

Sortable tables use the arrows as described in Expected Behavior. See Spotify as an example:

image

Vs the current implementation:

image

Tsmith18256 avatar Apr 04 '18 23:04 Tsmith18256

I'm happy to accept a PR for this. The issue is related to the header renderer in the example here: https://github.com/schrodinger/fixed-data-table-2/blob/master/examples/SortExample.js#L33

wcjordan avatar Apr 05 '18 00:04 wcjordan

Thanks for pointing out the location of that, I have opened #312.

Tsmith18256 avatar Apr 05 '18 16:04 Tsmith18256

It seems subjective which way the arrow should go. Down makes sense to me, because your going in descending order.

KamranAsif avatar Apr 05 '18 16:04 KamranAsif

@KamranAsif Down being descending is what would usually be happening and is what I am suggesting. The order in the screenshot above is ascending but the arrow is pointing down.

Tsmith18256 avatar Apr 05 '18 17:04 Tsmith18256

I see what your saying, I always thought of as logically going downwards.

KamranAsif avatar Apr 05 '18 18:04 KamranAsif

Closed with #312 Thanks for the PR!

wcjordan avatar Apr 06 '18 02:04 wcjordan