fix posts and sort posts list