I'm working with Select2 js(version 4.0.3) with ASP.NET MVC.
I have added reference of js and css files on Layout page.
<script type="text/javascript" src="~/js/select2.min.js"></scr
ipt>
Here is my view page code where I'm using it.
<div class="col-sm-9">
@Html.DropDownListFor(m => m.PlatformIds, (MultiSelectList)ViewBag.Platforms, new { @class = "form-control select2", @multiple = true })
</div>
For instance, platforms having data like Vitro, Nop and Woo. When user select any option, it sort in alphabetical order by default.
How can we stop that alphabetical order?
I have seen same issue over here: In multi-select, selections do not appear in the order in which they were selected But don't know where to fix, as I'm using min js file.