What is the logic in the order that jobs are displayed in the job search?

What is the logic in the order that jobs are displayed in the job search?

If there is no keyword query, jobs are ordered in date order with the most recent at the top. 

If there is a keyword query, jobs are ordered in relevance order, with a slight preference on recent jobs. 

Featured jobs appear at the top of the list in both cases.