Fix order of posts; cast(DATE) operator fails