hsum.push({ desc : desc, tot : totals[desc] });
}
hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
-print("\n\nDay Total (" + htot +')');
+print("\n\nDay Total");
hsum.forEach(function(r) {
print (" " + (r.tot.toFixed(2)*1) + " : " + r.desc);
});