Fix sorting of threaded messages.

I do not even try to pretend I fully understand the threaded query, but what I understand is that we select the columns from the grouped query (and u is the ungrouped query) so I think we should sort by the grouped column as well.

Fixes sorting of the threaded message list for me.