Added fix for search issue (i.e. relative urls)
Added fix to sort on occupancy if no other sort fields present.