fix the sorting of the drop down list