Preselect value in order

I have the data saved in database in the following order, (February, January). My select2 dropdown has the option from January to December. However, when I try to preselect the values using the following code, it always display January as first. How can I resolve this? I want the data sequence to display in the preselect values order I set.
$(’#example’).val([‘February’, ‘January’]);
$(’#example’).trigger(‘change’);

I’m assuming you’re using a multiselect Select2, and you’re asking about the order of the “tags” the represent the selected items. If those assumptions are correct, check out this documentation.