Order messages by error level

Fix #5