change up sort order to handle delayed, delayed_jobs