Sorting reversed by ID by default.
Use invoice_no for the filename if present.
Fixed spec because of change from ID to invoice_no in filename.
Merge pull request #171 from kaspernj/kj/invoice_sorting_and_filename_fixes

Invoice sorting and filename fixes