We're now rendering our list of surveys on the screen.
But I think that we probably need to do a little bit of work to make this a little bit more usable.
So the first thing I want to point out is that we are currently showing the oldest surveys at the very
top.
Thinking that it might make a little bit more sense to show the newest surveys at the top instead.
And so we can achieve this with a very straightforward sort.
So I'm going to go back into our survey list component.
Here's where we create our surveys or list of surveys to show on the screen.
And so before we map over these surveys array we can add in a dot reverse call right here.
So this is going to take these surveys Auray reverse it and then map over it.
So if we make this very quick change and save go back over to our browser you'll notice that now the
newest survey is popping up at the top.
So this is definitely working out pretty well.
Now the next thing I want to do is just for fun I want to go back into our Mongo database and manually
change some of the vote counts on here just to make it look like you know we've got a little bit more
data.
So back inside of our surveys collection here it is right here.
Here's my super final test.
Remember that I can always go in and manually edit some of this data.
So I'll say we've got like I don't know.
412 no votes and 49000 yes votes.
A lot of votes will go down to the bottom and save.
And now when we go back over to our application we can refresh the page and see some pretty crazy totals
on here.
OK.
At this point I think that we've pretty much wrapped up the main feature set of the application.
However as you can very easily guess there's still a tremendous amount of different places different
features we can add.
Probably your mind is even thinking boy it would be really awesome if we had some other x y z feature
or if the display for each survey looked a little bit more interesting.
So at this point I want to take a quick break.
I want to do one final commit of our project over to Heroku and I want to talk a little bit about how
we might make some improvements to our application and give you a couple of ideas on some things to
work on to improve it and kind of take it to the next level.
So let's take a quick break come back in the next section and work on doing one final deployment over
to Hoku.
So see you in just a minute.