</BUG>
Order.Type type = Order.Type.value(op);
sort = sort.substring(1);
Parent parent = new Parent(criteria, meta, sort);
<BUG>createCriteriaByGivenName(parent, transformer);
</BUG>
Order order = type == Order.Type.ASC ? Order.asc(parent.name): Order.desc(parent.name);
parent.criteria.addOrder(order);
}
}

if( sorts == null || sorts.length == 0) return;
for(String sort: sorts) {
if(Validations.isEmptyOrNull(sort)) continue;
sort = sort.trim();
if(sort.length() < 2) continue;
String op = sort.substring(0, 1);
Order.Type type = Order.Type.value(op);
sort = sort.substring(1);
Parent parent = new Parent(criteria, meta, sort);
if(!createCriteriaByGivenName(parent, transformer)) continue;
Order order = type == Order.Type.ASC ? Order.asc(parent.name): Order.desc(parent.name);
parent.criteria.addOrder(order);
}
}
