handling some empty-list situations
one less quicksort line