Announcement

Collapse
No announcement yet.

Sort Grid by Number

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sort Grid by Number

    Hello i have found this example "Grid Sort Range" it was able to sort Asc or Desc, but when i try to sort by number i think there is a problem,
    as you can see the image 1-10-100 instead of 1-2-3 and so on..
    anyone encounter this and have fixed? i was thinking to use Grid but this issue think me ask help from anyone.

    Thank you
    Attached Files

  • #2
    Page > On Show

    Code:
    Grid.SetHeaderSort("Grid1", true);

    Comment


    • #3
      Originally posted by herrin View Post
      Page > On Show

      Code:
      Grid.SetHeaderSort("Grid1", true);
      He does that, however I'm assuming that the header sort is not using a natural sorting algorithm. That's why you get his output
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment


      • #4
        Yes i try that but still the same issue..
        here is the example i found here just try to modify if it can be sort by numbers..
        Attached Files

        Comment


        • #5
          Hey telco,
          That sort by number is correct as it goes digit 1 then digit 2 then digit 3 etc
          to overcome you have to insert 0's
          Try this and play - GridSortRange_update.apz

          Comment


          • #6
            hi colc i prefer there is no 0s is there anyway that still in 1-2-3 and so on?

            Comment

            Working...
            X