Fix sorting in search when date_upd is set as default.