std.tbl.sort_by_str_len

std.tbl

sort_by_str_len(t) -> sorted

Sort an array of strings by display length

Sorts the array of strings by their display width (handling multi-byte characters correctly) in ascending order. For equal display widths, strings are sorted lexicographically.