How to order numbers by ascending by specific data type is string?

Please see image

And the result should be output


Thank you


try this

String.Join("",StringVariable.OrderBy(function(x) Cint(x.ToString)))




Hi @lovepong66

You can use the below expression to get the ascending order for your input

- Assign -> Input = "0374"
- Assign -> Output = New String(Input.ToCharArray().OrderBy(Function(c) c).ToArray())

Check the below image for better understanding,

Hope it helps!!

1 Like

Perfect for me thanks.

1 Like

It’s works for me too. Thanks!!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.