Skip to content

Magento 2.4.7 grid using ui_component set column sortOrder

I am creating a new grid in Magento 2.4.7 using ui_component and it won’t respect columns sortOrder values.

This is column example:

<column name="created_at" sortOrder="999" class="MagentoUiComponentListingColumnsColumn">
    <settings>
        <filter>text</filter>
        <label translate="true">Created At</label>
        <sortable>true</sortable>
    </settings>
</column>

Recent Magento 2.4.* versions do not accept the use of <argument> anymore. As per documentation it should use sortOrder inside the column tag as I wrote but it simply won’t work.

Thank you very much for your help.