Fixes thread sorting which causes thread creation POSTs to fail