fix "last week" date calculation when offset goes negative
use lambda's for sorting; make sorting by date work consistently