perform initial sort on nodes to help greedy matching

(24s -> 20s on com-lj2.dmx)
main.cpp: remove old printf