[#790] add test for search ordering by custom fields