Convert string to Array from variable

Hi,

I have a variable with value = 041423. How do I sort this in ascending order with distinct numbers(as in answer should be - 01234)

Thanks for help in Advance

Hi,

How about the following?

String.Join("",yourString.OrderBy(Function(c) c).Distinct)

Regards,

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