You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run mlr --csv sort-within-records -r "[0-9]+" input.csv I get
12,2,a
x,c,z
5,t,4
mlr: open [0-9]+: no such file or directory.
It orders it, but I have in output also an error: "mlr: open [0-9]+: no such file or directory."
I take advantage of this for a feature request: I see that the sorting is done as if all the values were strings. Ideally, it would be great to add the option to sort by natural sorting and have the fields in the order 2,12,a.
Thank you
The text was updated successfully, but these errors were encountered:
@aborruso the -r option to sort-within-records isn't a regex match on field names:
$ mlr sort-within-records -h
Usage: mlr sort-within-records [options]
Outputs records sorted lexically ascending by keys.
Options:
-r Recursively sort subobjects/submaps, e.g. for JSON input.
-h|--help Show this message.
Regardless, it would be nice to have a regex-match for field-name selection here.
Hi,
I have this input csv
If I run
mlr --csv sort-within-records -r "[0-9]+" input.csv
I getIt orders it, but I have in output also an error: "mlr: open [0-9]+: no such file or directory."
I take advantage of this for a feature request: I see that the sorting is done as if all the values were strings. Ideally, it would be great to add the option to sort by natural sorting and have the fields in the order 2,12,a.
Thank you
The text was updated successfully, but these errors were encountered: