search: pass empty $sort to skip sorting

Add support to skip sorting to FS#2245, as diskussed on the mailing list.
See PR168.