Fix tail_result handling.
More sort examples.