fixes #399 sorting

no clue how this happened