HTML export: before showing the dive list, sort descending by dive number

This way the newest dive gets shown first (which I think makes much more
sense) and the dives are in order as we show them in Subsurface.

I actually think we should toggle trips on by default - but I'm not sure.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-18 22:04:11 -07:00
parent f5510892a6
commit 293569cb19

View file

@ -20,6 +20,7 @@ function showAllDives()
for (var i = 0; i < items.length; i++) { for (var i = 0; i < items.length; i++) {
itemsToShow.push(i); itemsToShow.push(i);
} }
change_sort_col('1');
olditemstoshow = itemsToShow; olditemstoshow = itemsToShow;
start = 0; start = 0;
viewInPage(); viewInPage();