added new method sort(); added some new options for dropdown()