cars10/elasticvue

[BUG] - Percentage columns are sorted in lexicographic order instead of numeric order

Closed this issue · 0 comments

READ BEFORE OPENING AN ISSUE
Before you submit an issue please try to reset elasticvue and see if you can reproduce the problem.
To reset please click Disconnect and reset in the footer, this will reset all your saved filters and you have to reconnect to your cluster.
Proceed and open an issue if your problem persists.

Description
Percentage columns are sorted in lexicographic order instead of numeric order

Steps To Reproduce
List the steps to reproduce your problem:

  1. Open elasticvue
  2. Click on any of the columns with a percentage value to sort the column.
  3. Notice that 9% is sorted as greater that 64% in the attached screenshot.

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot 2024-01-11 at 5 03 01 PM

Environment (please include the following information):

  • Elasticsearch version: 8.11.3
  • Operating system: MacOS 13.6.3
  • Browser + version: Chrome 120.0.6099.129
  • Elasticvue version: 1.0.2-stable
  • How are you running elasticvue? (docker, browser extension, web app): browser extension

Additional context
Anything else?