OpenRefine includes a “Sort” function which works similarly to sorting in Excel. This function allows you to arrange your data according to a defined order within one or more columns.
Sorting by One Column
Go to the column you would like to sort by and click the arrow button on the column header.
Select the “Sort” option.
In the pop-up window, select the criteria and order you wish to sort by and select “Ok.”
The order of rows/records will change in the grid view according to your selections.
The “Sort” function does not permanently change the order of your rows/records, only the order you view them in. This can be checked by looking at the row/record numbers at the left of the grid view.
The order of your rows/records can be permanently changed by selecting “Sort” at the top of the grid view and choosing “Reorder rows permanently.”
The “Sort” function can be removed by selecting “Sort” at the top of the grid view and choosing “Remove sort.”
Sorting by Multiple Columns
Follow steps 1-4 above for your first sort.
Do not remove the first sort, but choose your second column and repeat steps 1-2.
In the pop-up window DO NOT select the “Sort by this column alone” option and select “Ok.”
The order of rows/columns will change in the grid view according to your first sort and then within that, according to the second sort.
If you have applied multiple sorts, you can remove each one individually or as a group. This can be done by selecting “Sort” at the top of the grid view, hovering over the sort title you wish to remove, and selecting “Remove sort.”