Function steap_by_steap::sort::MsdRadix
source · pub fn MsdRadix(strings: &PyList) -> PyResult<Vec<String>>
Expand description
Perform MSD Radix Sort on a list of strings.
This function implements the Most Significant Digit (MSD) Radix Sort algorithm to sort a list of strings in lexicographic order.
Args: strings (Liststr): A list of strings to be sorted.
Returns: Liststr: A new list containing the input strings in sorted order.
Example: >>> msd_radix_sort([“cat”, “dog”, “bird”, “ant”]) [“ant”, “bird”, “cat”, “dog”]