Function human_sort::sort[][src]

pub fn sort(arr: &mut [&str])

Sorts &str in human-friendly order

Example

use human_sort::sort;

let mut arr = ["file10.txt", "file2.txt", "file1.txt"];
sort(&mut arr);

assert_eq!(arr, ["file1.txt", "file2.txt", "file10.txt"]);