Skip to content

Sorting problem on numbers when using the from option #1461

Open
@barberob

Description

@barberob

Describe the bug
The sorting is wrong on numbers when creating from an html table.

To Reproduce
Steps to reproduce the behavior:

  1. create an html table, with a column id and a incremental number on each row : 1, 2, 3, 4, .... and create a new Grid() from that table
  2. Click on sort on that column
  3. you will have it sorted like a string : 1, 10, 100, 101, 102 103, ...

Expected behavior
This should sort it like a number 1, 2, 3, 4 becomes 4, 3, 2, 1

Screenshots
image
image

Desktop / Smartphone
not os specific

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions