Changing sort function to show selected friends first