Small changes in sort_utils module.