Halt if :sort_by is nil