boolean handleSortOrder ( final List < SortMeta > sortOrder ) { boolean changed = false ; if ( sortOrder == null ) { if ( multiSortBy != null ) { adaptee . clearSorting ( ) ; multiSortBy = null ; lastSorting = null ; changed = true ; } } else { final List < SortProperty > newSorting = convert2SortProperty ( sortOrder ) ; if ( ! newSorting . equals ( lastSorting ) ) { adaptee . setSorting ( newSorting ) ; multiSortBy = sortOrder ; lastSorting = newSorting ; changed = true ; } } return changed ; }
Updates sorting on the adaptee .