BUG: fix sort_index with one col and ascending list

now actually checks the first element of the list