Sort threads by weight and then by last reply