Fix sorting on posts