Helper factory.
Fix sort posts by modification date bug.