Modified the sort by degree during partitioning to include sorting by vertex id as a second key. This improves the final aggregation phase when algorithms maps the result back to the entry correponding to the vertex before sorting