add sorteddict to order the posts