from operator import itemgetter


def sort(records):
    """
    Function to sort records by time_last

    :param records: List (of dictionaries)
    :return: List (of dictionaries)
    """


    sorted_results = sorted(records, key=itemgetter("time_last"), reverse=True)
    return sorted_results