private void sort(List<PatternReference> patterns){
  Collections.sort(patterns,null);
}

private void sort ( List < PatternReference > patterns ) { Collections . sort ( patterns , null ) ; }
sort the patterns by term frequency .
