Add documentation for sorting constants.