removed duplicate sort - threads are default sorted by created_date desc in the model
fixed coding error