Index tag summary order #566
Labels
enhancement
New feature or request
good first issue
Good for newcomers
javascript
Pull requests that update Javascript code
The tag summary display on the report index can display tags in two orders:
There's a slight oddness in this behaviour that you can see if you expand the tag summary in the example report - in the first mode
histogram
andPASS
both have 100% popularity, so they're displayed together in that order,histogram
beforePASS
When we click the button to use lexicographic mode
PASS
comes beforehistogram
, the opposite order.This is how the sorting works. I guess there's a difference in the order that comes from Array.sort and String.localeCompare.
We should resolve that difference so that alphabetical order is consistent. It might be as simple as using the optional parameter to Array.sort to invoke localeCompare.
The text was updated successfully, but these errors were encountered: