Mastercard / flow

Testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index tag summary order

therealryan opened this issue · comments

The tag summary display on the report index can display tags in two orders:

  • By tag popularity
  • By tag name

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 and PASS both have 100% popularity, so they're displayed together in that order, histogram before PASS
When we click the button to use lexicographic mode PASS comes before histogram, 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.