remove sort by in template
pass in max number of emails to send