another sorting try --> not working