sort headers in exception template