use of nl.knaw.huygens.timbuctoo.search.description.sort.SortDescription in project timbuctoo by HuygensING.
the class DcarLegislationSearchDescription method createSortDescription.
private SortDescription createSortDescription() {
PropertyParserFactory propertyParserFactory = new PropertyParserFactory();
List<SortFieldDescription> sortFieldDescriptions = Lists.newArrayList(newSortFieldDescription().withName("dynamic_sort_title").withDefaultValue("").withProperty(localProperty().withName("dcarlegislation_titleEng").withParser(propertyParserFactory.getParser(String.class))).build(), newSortFieldDescription().withName("dynamic_k_date").withDefaultValue(0).withProperty(localProperty().withName("dcarlegislation_date1").withParser(propertyParserFactory.getParser(Datable.class))).build());
return new SortDescription(sortFieldDescriptions);
}
Aggregations