MH-9430 -- fixed further search issues; added decent unit tests for searching and sorting

git-svn-id: http://opencast.jira.com/svn/MH/trunk@14074 e6edf6fb-f266-4316-afb4-e53d95876a76