javascript - ExtJs tagfield sort visible value -


maybe can me sort selected items. default new selected added end of array.

i show them alphabetically, possible do?

i tried set listeners on change event called after selected item shown on component.

any help, or sugestion?

i did today!

add listener on select, , sort them there:

...                      "listeners": {     "select": function(combo, records){         records.sort(function(a, b){             //change value text or whatever field want sort on             return a.data.value - b.data.value;          });         combo.setvalue();         combo.setvalue(records);     } }, ... 

cheers


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -