fixed the sort, not sure how to document my testing