don't try to sort on empty input