posts sorting fix