Function nu_command::sort_value

source ·
pub fn sort_value(
    val: &Value,
    sort_columns: Vec<String>,
    ascending: bool,
    insensitive: bool,
    natural: bool
) -> Result<Value, ShellError>
Expand description

Sort a value. This only makes sense for lists and list-like things, so for everything else we just return the value as-is. CustomValues are converted to their base value and then sorted.