Triangle count fix

Triangle counting requires an input edge list sorted in canonical
order. When running triangle count analysis on a large multi-million
node graph, triangle count will break.