Series sorting in Appian

Hello All,

Do we have any OOTB function or plug-in function to achieve series sorting ?

Example :

Input

{1,
1.1,
1.1.1,
4,
1.2,
3,
2,
2.1,
2.2,
10,
13,
12}

Expected output :

{1,
1.1,
1.1.1,
1.2,
2,
2.1,
2.2,
3,
4,
10,
12,
13}

  Discussion posts and replies are publicly visible

Parents Reply
  • Using the sort in a datasubset IS sorting correctly,. The array is a list of string (not number - 1.1.1 is not a valid numeric value) and sorting as as list of string works correctly, but obviously doesn't meet your requirements. You'll have to implement your own custom sort. I suspect (although haven't done the work) that you'll have to examine each item, determine how many 'dots' the item contains, split out the numbers between the dots and implement a nested sort based upon how many levels of dot an item contains.

Children