Sort the #connector_select_filter


I’m using connector_select_filter, but data presented in combo for selecion is completed out of sort. Can I sort it? How?


You can load option in #connector_select_filer using Options connector:

$filter1 = new OptionsConnector($res); $filter1->render_sql("SELECT DISTINCT SUBSTR(item_nm,1,2) as value from grid50000","item_id","item_nm(value)"); $grid->set_options("item_nm",$filter1);

You can use render_sql method to sort options in necessary way