adds voting functionality, sorts posts by vote count