Correct sorting (refs #3641)
Merge pull request #20 from cbonnissent/1.0_3607

Correct sorting