[#861] Change the logic for sorting dataset search

Default to metadata_modified desc if no query and relevance if there is
a query.

This breaks a whole lot of tests and I'm not sure if I'm doing the right thing. @seanh, if you could take a look at a fix and tell me if I'm going in the right direction, that'd be great.