Optimized the performance of the sort.
Lots of progress with the new dependency analyzer tool.