Added sorting by to navbar
Got upvotes and downvotes working