@staticmethod
def order_messages_by_date(messages: list, descending: bool=True) ->list:
    """Order a collection of messages by datetime received."""
    return sorted(messages, reverse=descending, key=lambda val: val.received)
