Split non capture in two sets when ordering