fixing sorting names