blob: 131fa55ae0010d2ddc3c6b7d7f3cbf7875cb92ed (
plain) (
blame)
1
2
3
4
5
6
|
// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only
pub fn sort_vec_alphabetically(vec: &mut Vec<&str>) {
vec.sort_by(|a, b| a.to_lowercase().cmp(&b.to_lowercase()));
}
|