import org.simantics.diagram.symbollibrary.ISymbolGroup;
import org.simantics.diagram.symbollibrary.ISymbolItem;
+import org.simantics.utils.strings.AlphanumComparator;
/**
* @author Hannu Niemistö
Collections.sort(items, new Comparator<ISymbolItem>() {
@Override
public int compare(ISymbolItem o1, ISymbolItem o2) {
- return o1.getName().compareTo(o2.getName());
+ return AlphanumComparator.COMPARATOR.compare(o1.getName(),o2.getName());
}
});
return items.toArray(new ISymbolItem[items.size()]);