quick sort on list