moved the postList sorting to the router.js