apply sort to tags in drop down