Docstrings and allow ScalarDistribution to skip sort.