pub fn sort_record( record: Record, sort_by_value: bool, reverse: bool, insensitive: bool, natural: bool, ) -> Result<Record, ShellError>
Sort a record’s key-value pairs.
Can sort by key or by value.