fixed sorting on posts