Fixed weird bug with sorting posts