Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
You can sort data in the column using a custom list. This can be done using DataSorter.add_key(key, order, custom_list) method. However, this method works only if the items in the custom list do not have commas inside them. If they have commas like “USA,US”, “China,CN” etc., then you must use DataSorter.add_key(key, order, custom_list) method. Here, the last parameter is not String but an Array of Strings.
The following sample code explains how to use DataSorter.add_key(key, order, custom_list) method to sort data with custom sort list. Please see the sample Excel file used in this code and output Excel file generated by it. The following screenshot shows the effect of the code on the sample Excel file on execution.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.