Fixes #2554 - Adds search support for sorting and order

Ticket: http://trac.elgg.org/ticket/2554