fix bug 974544 - remove additional unneseccary sorted function after _do_sort has already sorted