Changed the order in which the information is sorted in the error notification e-mail. Hopefully improved the code of the corresponding function as well.