Changes to logic to sort threads by date last updated