fix search behaviour with empty _sort attr