fixed - sort posts by date.
added tests.