Using syncsort you can sort this at once giving the position of your sortfields. It depends on if your data is on the same place in every record.
Something like
sort fields=(20,6,,a)
which says something like starting from position 20 over a length of 6 no conversion ascending. But look the exact parm up in the manual or copy some existing example.
Does this help you?