search: pass empty $sort to skip sorting

Add support to skip sorting to FS#2245, as diskussed on the mailing list.
See https://github.com/splitbrain/dokuwiki/pull/168.