* bugfix for issue 164

This patch ensures threads get sorted based on their newest messages instead of the first one.