makeSortedRuns now returns the number of runs created.