added sort to posts