What is the best way to implement a custom sort for a List?
I have the List of Constants below.
ENERGY_POLICY, OBJECTIVE, TRAINING, SEU_REPORT, ENERGY_PERFORMANCE, INTERNAL_AND_EXTERNAL_PARTIES, INTERNAL_AUDIT_REVIEW, LEGAL_REQUIREMENTS_REVIEW, TASKS_REVIEW, CORRECTIVE_ACTIONS
I would like to implement a sort function to sort them in the specific order shown below.
[OBJECTIVE, ENERGY_POLICY, TRAINING, ENERGY_PERFORMANCE, INTERNAL_AUDIT_REVIEW, LEGAL_REQUIREMENTS_REVIEW, TASKS_REVIEW, SEU_REPORT, CORRECTIVE_ACTIONS, INTERNAL_AND_EXTERNAL_PARTIES]
Any help pointing me in the right direction would be greatly appreciated.
OBJECTIVEshould sort ahead ofENERGY_POLICY, and thatCORRECTIVE_ACTIONSshould sort after both of them?