Hi…
i have list of file… i want to order the file (like… 1,2,3,4,5,6,7 etc.,)
but i got this output.
How to order the file…
Thanks
Shyam
Hi…
i have list of file… i want to order the file (like… 1,2,3,4,5,6,7 etc.,)
but i got this output.
How to order the file…
Thanks
Shyam
do this
assuming testList = your list variable,
assign testList =
testList.AsEnumerable.OrderBy(function(x) cint(system.Text.RegularExpressions.Regex.Match(x, "\(([\d]+)\)").Groups(1).Value)).tolist
then your list will be sorted
The solution has been shared above.
It will come as an array only if you are pulling from a file as an appendix. You can make this field toArray instead of toList.
See the Output
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.