MonstreX/voyager-extension

VE Inline Field Set - order is not working

Closed this issue · 2 comments

When i try to order ( Drag & Drop) and save, then order does not work propertly.
I'd like to order it by day_no field. Unfortunately it doesn't set propertly.

Screen Shot 2022-10-05 at 11 58 41

Database table:
Screen Shot 2022-10-05 at 12 00 01

BREAD Optional Details:

{
    "inline_set": {
        "source": "App\\Models\\Itinerary",
        "many": true,
        "columns": 2,
        "fields": {
            "day_no": {
                "label": "Day No",
                "type": "number",
                "attrs": {
                    "required": true
                }
            },
            "label": {
                "label": "Label",
                "type": "text",
                "attrs": {
                    "required": true
                }
            },
            "image": {
                "label": "Image",
                "type": "media",
                "remove_delay": 5000
            },
            "description": {
                "label": "Description",
                "type": "textarea",
                "class": "col-md-12",
                "attrs": {
                    "required": true
                }
            }
        }
    }
}

Oops, I found the issue. I put order column as VARCHAR. I must be INTEGER.