}
final FavoriteNode sortNode = parentSort == null ? last : parentSort;
if(last.getChildCount() > 1 || (last.getParent().equals(mRootNode) && mRootNode.getChildCount() > 1 )) {
menu.addSeparator();
item = new JMenuItem(mLocalizer.msg("sort", "Sort alphabetically"),
IconLoader.getInstance().getIconFromTheme("actions", "sort-list", 16));
final String titleAlpha = item.getText();
item.addActionListener(new ActionListener() {