Email for Shared Link

When I choose to send a shared file via email, it sends the link out to the file first and THEN the password email. How can I reverse that order?

I think you can not really change it. You can see it in the mailing text of the second email.
Also it makes for security reason no sense to email link and password in two emails to the same email-server and email-account. Do not use a password.

Perhaps you can open an issue at Github.