refs #2945 - 18
refs #2945 - 23: improve sort