Updated getAllCriticalPaths() method so that it sorts entries by node label
so that all critical paths passing through one node are grouped together.
Fixes bug NMS-2359.