Fix sorting of posts on MacOS.