Added sort for posts table