private Order applyOrderBy(){
  final String orderBy=sord == null ? ord : sord;
  final String orderByField=sidx == null ? searchField : sidx;
  if (orderBy.equals("asc"))   return Order.asc(orderByField);
 else   return Order.desc(orderByField);
}

private Order applyOrderBy ( ) { final String orderBy = sord == null ? ord : sord ; final String orderByField = sidx == null ? searchField : sidx ; if ( orderBy . equals ( "asc" ) ) return Order . asc ( orderByField ) ; else return Order . desc ( orderByField ) ; }
used to convert jqgrid order by to hibernate order by
