Fix fix sort_by example, and remove trailing whitespace.