Merge pull request #2 from ankurdave/SPARK-1987

Ankur: Fixes the compile error, sorts by (srcId, dstId) rather than just srcId because groupEdges relies on that, and works around a small bug in ParallelSorter that requires you to supply explicit sorting ranges to avoid a ClassCastException.