cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Collection Action - Sort

Hello,

 

I am having trouble with the Collection Action sort. I have a bunch of values that are all numbers such as 30;5;15;10;7; and trying to sort them as a collection within a workflow.

The Collection Action sort is not working on descending or ascending. Any ideas or thoughts on why this is not working properly?  Fortunately I was able to build a workaround at this time but kinda silly to have it at all.

 

Ben.

Labels: (1)
Reply
3 Replies
Not applicable

Re: Collection Action - Sort

Hi Benjamin Jensen,

 

How is the sort order?  When you use numbers without a leading zero. it could sort like: 1,10,2,3

If you use 01, 02, etc it will sort 01,02,03..,09,10.

 

Could you give an example how it is sorting?

 

Thanks

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Collection Action - Sort

It would appear a leading 0 corrects the sorting of the collection operation. Since this is a user input situation means I have to add a leading 0 to every value entered to make this work as one cannot depend on users to enter in such values correctly.

Thanks Ramses Kooijman!

0 Kudos
Accept as Solution Reply
Not applicable

Re: Collection Action - Sort

Glad it worked out, Benjamin Jensen​!

0 Kudos
Accept as Solution Reply