fix unless with sorted results.

Fixed wrong placed unless.