sorting list_messages and envoi_modified