//! Module for different bit modification functions which are used in the library.
use Vec;
use Ordering;
pub
/// The canonical encoding of SET OF values in DER requires
/// the encoded elements to be sorted in ascending order.
/// When DER-encoding a SET OF, its elements are encoded one by one.
/// The encoded elements are then compared as octet strings
/// (shorter strings are zero-padded at their backs).
/// The function is to be used as a compare function for `alloc::slice::sort_by`.
///
/// ***From ISO/IEC 8825-1:2021***
///
/// *11.6 Set of components*
///
/// *The encodings of the component values of a set-of value shall appear in ascending order,*
/// *the encodings being compared as octet strings with the shorter components being padded*
/// *at their trailing end with 0-octets.*
// used in comparison function
pub