Sort classes in search page