setSortBy(query, json.getString(SORT_BY));
}
if (json.has(SORT_ORDER)) {
String sortOrder = json.getString(SORT_ORDER);
if (Direction.ASCENDING.getName().equals(sortOrder)) {
query.asc();
}
else if (Direction.DESCENDING.getName().equals(sortOrder)) {
query.desc();
}
else {