remove duplicated sorting code
fix script for adding users to sendgrid email list
fix remaining issues on email newsletter