Hi,
I’m importing a json file into OpenRefine and I’m wondering is there some way that I can automatically sort the Column Name alphabetically? I know I can drag to rearrange but I have 50+ columns usually. The json file contains the info alphabetically before import but it isn’t retained after importing.
Thank you!
Jennifer
Jennifer B. Young
Metadata Coordinator
Northwestern University Libraries
Northwestern University
{ "op": "core/column-move", "description": "Move column Column to position 0", "columnName": "Column", "index": 0 }
"["+forEachIndex(row.columnNames.sort(),i,cn,"{\"op\": \"core/column-move\",\"description\": \"Move column "+cn+" to position "+i.toString()+"\",\"columnName\": \""+cn+"\",\"index\": "+i+"}").join(",")+"]"
Thank you Owen! Worked like a charm!
-Jennifer
--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
openrefine+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.