protected Parameter createSortParameter ( ParameterContext context ) { ModelReference stringModel = createModelRefFactory ( context ) . apply ( resolver . resolve ( List . class , String . class ) ) ; return new ParameterBuilder ( ) . name ( getSortName ( ) ) . parameterType ( SORT_TYPE ) . modelRef ( stringModel ) . allowMultiple ( true ) . description ( SORT_DESCRIPTION ) . build ( ) ; }
Create a sort parameter . Override it if needed . Set a default value or further description for example .