Added sort functionnality on thread page (Post/index).