changed styling of dates for comments and posts
refactored function for ordering posts