Add code to sort the threads in Gnus