}
builtFieldWidget.setRanking(ranking);
elements.add(builtFieldWidget);
}
}
Collections.sort(elements, new DialogElementComparator());
WidgetCollectionParameters wcp = new WidgetCollectionParameters();
wcp.setContainedElements(elements);
wcp.setFieldName(ITEMS);
return Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });