private JMenu createSortMenu() {
JMenu menu = Utilities.createJMenu(GT._("Sort"));
List<CompositeComparator<Page>> comparators = PageComparator.getComparators();
for (CompositeComparator<Page> comparator : comparators) {
JMenuItem menuItem = Utilities.createJMenuItem(comparator.getName(), true);
menuItem.addActionListener(new SetComparatorAction(modelLinks, comparator));
menu.add(menuItem);
}
return menu;
}