added sorting to new post