Correct bug with sort, remove parseJSON in ajax function (use text/x-json content type instead), add possibility to specify optgroup in select.