Made self not optional in list_sort_ function

as @rixner said this would have saved me some work :)