Automatic sort

add button to automatically sort the nodes in the canvas, closes #30