Added util for sorted distributions