Search id order bug 12310 (rebased onto develop)



This is the same as gh-2543 but rebased onto develop.

----

See http://trac.openmicroscopy.org.uk/ome/ticket/12310

To test:
Search for images / datasets etc by ID: The data found by ID should always appear at the top of the search results, with data found by other attributes below.