enabled sorting by switch