how to sort dates output in IEnumerable ? thanks
@AhmedKutraphali - Please shows us your input and workflow screenshot…that would help us in understanding the problem better…
for example the output of matches are dates , order by ascending. @prasath17
@AhmedKutraphali - You can try like this…
ArrItems = YourIEnumerableVariable.Select(Function (x) x.tostring).toArray
And then Using Invoke method activity…
how to sort on accending
you can use: yourIEnumerable.OrderBy(Function(x) DateTime.Parse(x.Value))
If “Match” is System.Text.RegularExpressions.Match
IEnRegex does not exists @prasath17
@AhmedKutraphali - That is your Output Regex variable(assuming you are using Regex to extract the dates)…
For Ascending…just use Reverse in the MethodName
Can you try the following?
listStr = result.Select(Function(m) m.Value).OrderBy(Function(s) DateTime.Parse(s)).ToList()
do we have a c# expression equivalent on this one ? @Yoichi ?
listStr = result.OrderBy(x => DateTime.Parse(x.Value)).ToList()
list = res.Select(m=>m.Value).OrderBy(s=>DateTime.Parse(s)).ToList();
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.