from typing import List


def sort_by_field(detections: List[dict], field: str) -> List[dict]:
    """
    Sort detections by field.
    :param detections: list of detections
    :param field: field for sort by
    :return: list of detections sorted by field
    """
    return sorted(detections, key=lambda i: i[field])