fix toggleSort directive dropdown