Attempt at fixing sorting
Fixed typo
Added more info to question