{"id":1601,"date":"2021-02-21T09:22:55","date_gmt":"2021-02-21T09:22:55","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/make-column-sorting-false-using-ui-component-in-magento-2\/"},"modified":"2025-07-16T17:59:27","modified_gmt":"2025-07-16T12:29:27","slug":"make-column-sorting-false-using-ui-component-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/make-column-sorting-false-using-ui-component-in-magento-2\/","title":{"rendered":"How to Make Column Sorting &#8220;False&#8221; Using UI Component in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Grids in\u00a0Magento 2\u00a0are a way to list the items in a database table for better management. Grids are used to represent, filter and sort various data in the Magento backend using\u00a0<a href=\"https:\/\/developer.adobe.com\/commerce\/frontend-core\/ui-components\/\" target=\"_blank\" rel=\"noreferrer noopener\">UI component<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They are also used to perform mass actions such as updates and deletes. The Grid enables you to sort single and multiple data-bound columns.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As the default Magento 2 admin grid disables sorting on Thumbnail, Salable Quantity and Actions, you can also&nbsp;<em><strong>make column sorting false using UI component in Magento 2&nbsp;<\/strong><\/em>in your custom grid or columns.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, the columns that contain buttons, URL link or code does not need sorting. In that scenario, use the below method and disable the sorting for custom columns.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Make Column Sorting False Using UI Component in Magento 2<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add tag&nbsp;<strong>&lt;sortable&gt;<\/strong>&nbsp;in your code<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;column name=\"store_id\" class=\"Magento\\Store\\Ui\\Component\\Listing\\Column\\Store\">\n    &lt;settings>\n        &lt;label translate=\"true\">Purchase Point&lt;\/label>\n        &lt;bodyTmpl>ui\/grid\/cells\/html&lt;\/bodyTmpl>\n        &lt;sortable>false&lt;\/sortable>\n    &lt;\/settings>\n&lt;\/column><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You just have set&nbsp;<strong>false&nbsp;<\/strong>in &lt;sortable&gt; tag and the sorting disables!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grids in\u00a0Magento 2\u00a0are a way to list the items in a database table for better management. Grids are used to represent, filter and sort various&#8230;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1601","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1601"}],"version-history":[{"count":4,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions"}],"predecessor-version":[{"id":13872,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions\/13872"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}