Reference https://select2.org/getting-started/basic-usage The requirement here is that the order of selection must stay even after the data is submitted and re-loaded for viewing in some other page.