Force resort on a grid layout

Hello, I’m building a bit from the BPMN example. I created a custom palette with some of my own nodes and a sorting function. Thing is, when an externalobject is dropped I want the sorting function to be called in order to resort my nodes in the grid layout. How do I do that?

Just call Diagram.layoutDiagram(true) on the Palette.

Unless you mean that you want to use a new sorting function? In that case just set GridLayout.comparer on the Palette.layout.