Improves performance of sorting nodes