def METHOD_NAME() -> Plugin:
    return Plugin(
        start=False,
        debug=False,
        spec=Spec(
            module=__name__,
            className=SortArrayAction.__name__,
            inputs=["payload"],
            outputs=["result", "error"],
            manual="sort_array_action",
            init={
                "data": "",
                "direction": "asc",
            },
            version='0.7.3',
            license="MIT",
            author="Tanay PrabhuDesai",
            form=Form(
                groups=[
                    FormGroup(
                        name="Sort array plugin configuration",
                        fields=[
                            FormField(
                                id="data",
                                name="Reference the data that you want to sort",
                                component=FormComponent(
                                    type="dotPath",
                                    props={
                                        "label": "Data",
                                        "defaultSourceValue": "event",
                                    }
                                ),
                            ),
                            FormField(
                                id="direction",
                                name="Direction of the sorting.",
                                component=FormComponent(
                                    type="select",
                                    props={
                                        "label": "Direction",
                                        "defaultSourceValue": "event",
                                        "items": {
                                            "asc": "Ascending",
                                            "desc": "Descending",
                                        }
                                    }
                                ),
                            ),
                        ]
                    )
                ]
            )
        ),
        metadata=MetaData(
            name='Sort list',
            desc='Plugin that sorts (ascending, descending) a referenced array/list.',
            keywords=['sort', 'array'],
            icon='sort',
            group=["Operations"],
            documentation=Documentation(
                inputs={
                    "payload": PortDoc(desc="This port takes payload object")
                },
                outputs={
                    "result": PortDoc(desc="Returns the sorted list/array")
                }
            ),
        )
    )