Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

SRP_Sort_Array Order

When trying to use the SRP_SORT_ARRAY, I'm trying to sort a list of numbered values using "SRP_SORT_ARRAY(List, "AL1", 1) to sort them in ascending order for the first column. My problem is that it's sorting them by the character and not the actual values. For instance its storing the values as 1, 10, 100, 101, 102, 103, etc. Instead of 1, 2, 3, 4, 5, 6, 7, ... etc. Is there a parameter or value I should be using in the SRP_Sort_Array function to sort it this way ? If not I can create a work around.

Thank You!


  • You want to use "AN1" to sort numbers. We also have a more readable version of this API in our SRP_Array service that looks like this:

    Sorted = SRP_Array("SortSimpleList", List, "AscendingNumbers", @FM)
  • Awesome, just tried that and it worked. Forgot about SRP_Array, Thank you!
Sign In or Register to comment.