I have problem with 1.16.0 autocomplete ajax
over ajax receive data (in correct ordering)
"10.85.15.132 BG "
"10.85.15.140 BG "
"10.85.31.132 BC "
“10.85.62.105 BC”
"10.85.62.107 BC "
“10.85.62.109 BC”
“10.85.62.129 BC”
but in drop down is shown in random order
I use this to show data
{ data: ‘top’,type: ‘autocomplete’, source: function (query, process) {
console.log(process);
$.ajax({
url: 'top/loadtopip.php',
dataType: 'json',
data: {
query: query
},
success: function (response) {
//process(JSON.parse(response.data)); // JSON.parse takes string as a argument
if (response.data!=null) if (response.data!="") {
console.log(response.data);
if (response.data) process(response.data);
}
}
});
},
filter:true }