Yes we can sort it with a seperate fucntion ( mailmsgs.OrderBy(function§ p.Priority).OrderBy(Function(m) m.Headers(“date”))).
I was asking if we can do it using this SQL string : ’ “@SQL=” & Chr(34) _ & “urn:schemas:httpmail:subject” & Chr(34) _ & " ci_phrasematch ‘question’"’
which we use for subject filtering.
(Note : During one execution of the workflow, only one mail should be processed.)