Fix compile error

Fixes the compile error, sorts by (srcId, dstId) rather than just srcId because groupEdges relies on that, and works around a small [bug](http://mydailyjava.blogspot.com/2013/11/cglib-missing-manual.html) in ParallelSorter that requires you to supply explicit sorting ranges to avoid a ClassCastException.