vanilla-framework icon indicating copy to clipboard operation
vanilla-framework copied to clipboard

Sortable table has ascending and descending functionality/indicators swapped

Open pastelcyborg opened this issue 1 year ago • 0 comments

Describe the bug

The sortable table provides ascending/descending indicators on table headers when clicked. However, the functionality and indicators themselves appear to be swapped - for instance, when the "descending" indicator appears, the data is actually presented in ascending manner, despite that the indicator shown is the down chevron.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Sortable Table example
  2. Click on a table header, such as "Cores"
  3. Witness the table header switch to indicate the data is sorted in descending manner
  4. Witness the data within the table is actually sorted in ascending manner

Expected behavior

The sorting functionality and indicators should be aligned with one another.

Screenshots

Screenshot from 2024-06-11 19-06-19

Desktop (please complete the following information):

  • Bug is present on all platforms

pastelcyborg avatar Jun 11 '24 18:06 pastelcyborg