reverse date navigation?

Permalink
so at the moment, my date navigation displays all "calendar_event" page types and displays the navigation like so:

> NOVEMBER
OCTOBER
-- 10/31
-- 10/09
-- 10/01
> SEPTEMBER

any way to reverse this? to this:

> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09
-- 10/31
> NOVEMBER

secondly, is there a way to have a link like "view full calendar" from the homepage open the current date's event or nearest event. so if i clicked this homepage link, it would go and open up the 10/09 date event

> SEPTEMBER
OCTOBER
-- 10/01
-- 10/09 (this one has been selected with page details on right)
-- 10/31
> NOVEMBER

 
jhart replied on at Permalink Reply
really could use some help on this. will pay $ if needed!
kino replied on at Permalink Reply
kino
I'll try it.

But,I don't have calender add-in.
Therefore, I need the money to buy them.
jhart replied on at Permalink Reply
its the "date navigation"

http://www.concrete5.org/marketplace/addons/date_navigation/...

do you have that?
kino replied on at Permalink Reply
kino
No, I do not have.
okhayat replied on at Permalink Reply
okhayat
My guess is SQL used to get the date list is in the controller.php and if you edit that by adding something like ' ORDER BY `date` DESC' it would reverse the dates.
kino replied on at Permalink Reply
kino
but,I thinks use custom template.
because, from both available.
jhart replied on at Permalink Reply
well your post got me in the right direction. i was looking at the view.php but it was the controller that i needed to modify.

instead of:
$pl->sortByPublicDateDescending();

i used this:
$pl->sortByPublicDate();

worked like a charm.