from typing import List


def order_by_name(order_list: List[dict], order_name: str) -> int:
    """This method returns the current index of an order by its name. If the order does not exist, -1 is returned.

    """

    for index, order in enumerate(order_list):
        if order['name'] == order_name:
            return index

    return -1