private void serializeSorts() {
   if (sortClauses == null || sortClauses.isEmpty()) {
     remove(CommonParams.SORT);
   } else {
     StringBuilder sb = new StringBuilder();
     for (SortClause sortClause : sortClauses) {
       if (sb.length() > 0) sb.append(",");
       sb.append(sortClause.getItem());
       sb.append(" ");
       sb.append(sortClause.getOrder());
     }
     set(CommonParams.SORT, sb.toString());
   }
 }
 public boolean equals(Object other) {
   if (this == other) return true;
   if (!(other instanceof SortClause)) return false;
   final SortClause that = (SortClause) other;
   return this.getItem().equals(that.getItem()) && this.getOrder().equals(that.getOrder());
 }