python sort list with unique values