sorting of nodes and ui fixes to #65