Fix sort by alphabet bug.