Fix post sorting