Removed unused local functions in sort_utils.