added implementation to get use case 12 to pass

- implemented sorting answers by most recent, least recent, most upvotes