SuffolkLITLab / docassemble-AssemblyLine

Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
https://suffolklitlab.org/docassemble-AssemblyLine-documentation/
MIT License
41 stars 5 forks source link

Order of email attachments when using send_button_html() is opposite of order when using download_list_html() #838

Open mnewsted opened 6 months ago

mnewsted commented 6 months ago

When using send_button_html(), is it possible to reverse the order of documents that are attached to the email?

al_user_bundle.download_list_html() puts the docs in the order listed in the object definition, but sometimes (often?) when the files are sent as an email attachment, they are in the reverse order. Maybe this has to do with the properties of the documents in the bundle?

Can these be made consistent, or could there be a way to invert the order when using send_button_html() ? Thanks!