question: 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 ) ; }
target:  Used to convert jqgrid order by to hibernate Order by