def METHOD_NAME(
    self,
    task: Task,
    file: Lintable | None = None,
) -> list[MatchError]:
    result = []
    raw_task = task["__raw_task__"]
    keys = [str(key) for key in raw_task if not key.startswith("_")]
    sorted_keys = sorted(keys, key=functools.cmp_to_key(task_property_sorter))
    if keys != sorted_keys:
        result.append(
            self.create_matcherror(
                f"You can improve the task key order to: {', '.join(sorted_keys)}",
                filename=file,
                tag="key-order[task]",
                transform_meta=KeyOrderTMeta(fixed=tuple(sorted_keys)),
            ),
        )
    return result