Fix bug that sort by thread made newer thread appear at the bottom