make it possible again to disable thread sort and server sort.