Fixing sort! issue.