I am using Select2 to style my select box and add functionality and I am wondering how I can make the search rules more lenient. Currently if I have "New Mexico" in the dropdown, I can search for "mexico" or "new mexico" to match the select option, but if I enter "mexico new" I get "no results found." Is there a way to extend the search functionality to match search words regardless of their order?
$(document).ready(function() {
$(".states").select2();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet"/>
<select class="states" style="width: 50%">
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="TB">Tshirt, Black</option>
</select>