support sorting nodes by name only or based on node type
prevents initial toggling of debugging flag