{"id":549,"date":"2026-06-24T06:45:25","date_gmt":"2026-06-24T06:45:25","guid":{"rendered":"https:\/\/simutecra.com\/blog\/?p=549"},"modified":"2026-06-24T06:45:28","modified_gmt":"2026-06-24T06:45:28","slug":"how-to-sort-tables-in-autocad","status":"publish","type":"post","link":"https:\/\/simutecra.com\/blog\/how-to-sort-tables-in-autocad\/","title":{"rendered":"How to Sort Tables in AutoCAD: All Methods (2026)"},"content":{"rendered":"\n<p><strong>AutoCAD tables<\/strong> are among the most useful but underappreciated tools in the software. A well-built table can serve as a revision schedule, a parts list, a door schedule, a material takeoff, or a bill of materials directly inside your drawing. But the moment you need to sort that table alphabetically, numerically, or by a specific column AutoCAD&#8217;s behaviour can be confusing, inconsistent, and in some versions seemingly broken.<\/p>\n\n\n\n<p>The frustration usually looks like one of three things: the table appears to have no sort option at all; the sort works but puts 1, 11, 12, 2, 3 instead of 1, 2, 3; or the sort works in the Data Extraction preview but the inserted table does not update. Each of these has a specific cause and a specific fix but only if you know which of AutoCAD&#8217;s four distinct sorting approaches you are actually using.<\/p>\n\n\n\n<p>This guide covers all four methods for sorting tables in <strong>AutoCAD<\/strong> with complete numbered steps: the built-in column header sort for manually created tables, the Data Extraction wizard sort for attribute and object data tables, the free SORTTABLE LISP utility for tables where the built-in sort is greyed out or insufficient, and the Excel data link round-trip for users who need full spreadsheet-style sort control. It also explains the alphanumeric sort issue, how to fix it, and when to use each method.<\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#ebf5fa;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Quick Answer:&nbsp; <\/strong>To sort a manually created <strong>AutoCAD table<\/strong>: click inside the table to select it, then right-click a column header and choose <strong>Sort Column Ascending<\/strong> or <strong>Sort Column Descending<\/strong>. If this option is greyed out or missing, the table was created via Data Extraction re-open the Data Extraction wizard to sort (see Method 2), or use the free SORTTABLE LISP utility (see Method 3).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding AutoCAD Tables and Why Sorting Is Complex<\/strong><\/h2>\n\n\n\n<p>To understand why <strong>sorting tables in AutoCAD<\/strong> requires knowing which method to use, it helps to understand that AutoCAD tables are not all the same type of object. There are four distinct types of AutoCAD table, and they each sort differently or do not sort natively at all.<\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong>Table Type<\/strong><\/td><td><strong>How Created<\/strong><\/td><td><strong>Built-In Sort Available?<\/strong><\/td><td><strong>Best Sort Method<\/strong><\/td><\/tr><tr><td>Manually created table<\/td><td>TABLE command, drawn row by row with typed cell content<\/td><td>Yes, right-click column header for sort options (AutoCAD 2008+)<\/td><td>Method 1: Built-in column sort<\/td><\/tr><tr><td>Data Extraction table<\/td><td>DATAEXTRACTION wizard pulls attribute data or object properties from drawing<\/td><td>Partial sort available in the wizard during creation; re-sorting after insertion requires re-running the wizard<\/td><td>Method 2: Data Extraction wizard re-sort<\/td><\/tr><tr><td>Excel-linked table<\/td><td>INSERT &gt; Data Link live link to an Excel spreadsheet<\/td><td>Sort in Excel, then update the link in AutoCAD not sortable directly in AutoCAD<\/td><td>Method 4: Sort in Excel, update link<\/td><\/tr><tr><td>Any table (alternative method)<\/td><td>Any of the above<\/td><td>Yes, SORTTABLE LISP utility works on all table types<\/td><td>Method 3: SORTTABLE LISP utility<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The key practical implication: if you right-click a <strong>Data Extraction table<\/strong> in AutoCAD and find the sort option greyed out or missing, you are not doing anything wrong. AutoCAD genuinely does not provide native re-sorting for Data Extraction tables after insertion. Your options are Method 2 (re-open the wizard) or Method 3 (LISP utility).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method Chooser: Which Sorting Method Do You Need?<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong>Your Situation<\/strong><\/td><td><strong>Recommended Method<\/strong><\/td><td><strong>Why<\/strong><\/td><\/tr><tr><td>You have a manually typed AutoCAD table and need a quick sort<\/td><td>Method 1: Built-in column sort<\/td><td>Fastest, no setup needed, works directly in AutoCAD 2008 and later<\/td><\/tr><tr><td>Your table was created by the Data Extraction wizard and sort is greyed out<\/td><td>Method 2: Re-open Data Extraction wizard<\/td><td>The only way to re-sort a Data Extraction table using AutoCAD&#8217;s native tools<\/td><\/tr><tr><td>You need to sort any table type including Data Extraction tables, and want a simpler workflow<\/td><td>Method 3: SORTTABLE LISP utility (free)<\/td><td>Works on all table types, simpler than re-running Data Extraction wizard, one free download<\/td><\/tr><tr><td>Your table is linked to an Excel spreadsheet<\/td><td>Method 4: Sort in Excel then update link<\/td><td>Excel provides full spreadsheet-level sort control; update propagates to AutoCAD automatically<\/td><\/tr><tr><td>You need to sort a large table repeatedly and want full control<\/td><td>Method 4 (Excel) or Method 3 (LISP) depending on data source<\/td><td>Excel for maximum flexibility; LISP for tables that live purely in AutoCAD<\/td><\/tr><tr><td>Numbers are sorting as 1, 11, 12, 2, 3 instead of 1, 2, 3<\/td><td>See the Alphanumeric Sort Fix section below<\/td><td>This is a text-versus-number data type issue requiring a specific solution<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 1: Built-In Column Header Sort for Manual Tables<\/strong><\/h2>\n\n\n\n<p>AutoCAD has a built-in table sort feature for manually created tables, available from <strong>AutoCAD 2008 onwards<\/strong>. It allows you to sort a table alphabetically or numerically by any column, in ascending or descending order. It is fast, requires no additional tools, and works directly in the drawing environment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Important Prerequisite: The Table Must Have a Header Row<\/strong><\/h3>\n\n\n\n<p>The built-in sort works through column header interaction. For the sort option to appear, the table must have a header row with content. If your table has no header row (all rows are data rows), you can still sort by right-clicking any cell in the column you want to sort by.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Full Step-by-Step: Built-In Column Sort<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click anywhere <strong>inside the table<\/strong> to select it. The table grips appear and the Table contextual ribbon tab becomes active.<\/li>\n\n\n\n<li>Move your cursor over the <strong>column header cell<\/strong> of the column you want to sort by. The column header highlights.<\/li>\n\n\n\n<li>Right-click the column header cell. A context menu appears.<\/li>\n\n\n\n<li>Look for <strong>Insert &gt; Sort<\/strong> or directly for <strong>Sort Column Ascending<\/strong> \/ <strong>Sort Column Descending<\/strong> in the menu.<\/li>\n\n\n\n<li>Select <strong>Sort Column Ascending<\/strong> (A to Z, or 1 to 9) or <strong>Sort Column Descending<\/strong> (Z to A, or 9 to 1) as required.<\/li>\n\n\n\n<li>AutoCAD reorders all data rows in the table based on the content of the selected column. The header row remains in place at the top.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Multi-Column Sorting<\/strong><\/h3>\n\n\n\n<p>To sort a table by a primary column and then by a secondary column for rows with identical primary values:<\/p>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li>Right-click the column header and look for <strong>Sort Column Advanced<\/strong> or <strong>Table &gt; Sort<\/strong> in the context menu (availability depends on AutoCAD version).<\/li>\n\n\n\n<li>In the sort dialogue, set the primary sort column and direction.<\/li>\n\n\n\n<li>Add a secondary sort column for tie-breaking.<\/li>\n\n\n\n<li>Click OK to apply the multi-level sort.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#faf8eb;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Version Note:&nbsp; <\/strong>The built-in table sort via right-click column header was introduced in <strong>AutoCAD 2008<\/strong>. If you are using AutoCAD 2007 or earlier, this option does not exist. Use Method 3 (LISP utility) instead. In AutoCAD 2014 and later, the Table ribbon tab when a table is selected provides additional table management options including a Sort button in the Table panel.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Accessing Sort from the Table Ribbon Tab<\/strong><\/h3>\n\n\n\n<p>In <strong>AutoCAD 2014 and later<\/strong>, clicking inside a table activates the Table <a href=\"https:\/\/simutecra.com\/blogs\/why-is-my-autocad-ribbon-empty\">contextual ribbon tab<\/a>. This tab includes a <strong>Sort<\/strong> button in the Rows panel (or Table panel depending on version). Clicking Sort opens a dedicated sort dialogue where you can select the column to sort by, the sort direction, and whether to include or exclude header rows from the sort operation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 2: Sorting Tables Generated by Data Extraction<\/strong><\/h2>\n\n\n\n<p>When an <strong>AutoCAD table<\/strong> is generated by the Data Extraction wizard (DATAEXTRACTION command), it is linked to a data extraction definition stored in a .dxe file. The sort order of this type of table is controlled inside the wizard, not in the table itself after insertion. Right-clicking a Data Extraction table column and looking for sort options will often find them greyed out or absent.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sorting During Data Extraction Creation<\/strong><\/h3>\n\n\n\n<p>The best time to set sort order is during the Data Extraction wizard workflow, specifically on <strong>Page 5 of 8: Refine Data<\/strong>. At this stage, the data is displayed in a preview grid and you have full sorting control before the table is inserted:<\/p>\n\n\n\n<ol start=\"11\" class=\"wp-block-list\">\n<li>Run the <strong>DATAEXTRACTION<\/strong> command (or go to Insert tab &gt; Linking and Extraction panel &gt; Extract Data).<\/li>\n\n\n\n<li>Work through the wizard pages: data source, objects, properties, and so on.<\/li>\n\n\n\n<li>When you reach <strong>Page 5 (Refine Data)<\/strong>, the data appears in a preview grid.<\/li>\n\n\n\n<li>Click any <strong>column header<\/strong> to sort the data by that column. Click once for ascending order, again for descending.<\/li>\n\n\n\n<li>For multi-column sort: right-click a column header and look for <strong>Sort Column Options<\/strong>. This opens a sort settings dialogue where multiple columns can be prioritised.<\/li>\n\n\n\n<li>Once sorted correctly, continue through the wizard to insert the table. The inserted table reflects the sort order set in the wizard.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Re-Sorting an Existing Data Extraction Table<\/strong><\/h3>\n\n\n\n<p>If the table has already been inserted and you need to change its sort order:<\/p>\n\n\n\n<ol start=\"17\" class=\"wp-block-list\">\n<li>Select the Data Extraction table in the drawing.<\/li>\n\n\n\n<li>Right-click and look for <strong>Update Table<\/strong> or <strong>Edit Data Extraction<\/strong>. Alternatively, type <strong>DATAEXTRACTION<\/strong> in the command line and press Enter.<\/li>\n\n\n\n<li>Choose <strong>Edit an existing data extraction<\/strong> and browse to or select the .dxe file associated with the table.<\/li>\n\n\n\n<li>Click Next through the wizard until you reach <strong>Page 5 (Refine Data)<\/strong>.<\/li>\n\n\n\n<li>Re-sort the columns by clicking the column headers as described above.<\/li>\n\n\n\n<li>Continue to the end of the wizard and select <strong>Update the existing table<\/strong>. Click Finish.<\/li>\n\n\n\n<li>AutoCAD updates the table in the <a href=\"https:\/\/simutecra.com\/blogs\/how-to-draw-a-line-from-its-midpoint-in-autocad\/\" data-type=\"link\" data-id=\"https:\/\/simutecra.com\/blogs\/how-to-draw-a-line-from-its-midpoint-in-autocad\/\">drawing with the new sort order.<\/a><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#faf7eb;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Data Extraction Sort Limitation:&nbsp; <\/strong>Once a Data Extraction table is inserted in the drawing, its sort order is frozen unless you re-run the wizard. This is a significant limitation compared to Excel or a manually typed table. If you need a table that can be re-sorted frequently without re-running the wizard, consider using Method 4 (Excel link) or Method 3 (LISP utility) instead.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Read related article on <a href=\"https:\/\/simutecra.com\/blogs\/how-to-use-dxf-files-in-autocad-complete-2026-guide\">How to Use DXF Files in AutoCAD: Complete 2026 Guide<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 3: SORTTABLE LISP Utility Free and Reliable<\/strong><\/h2>\n\n\n\n<p>The <strong>SORTTABLE LISP routine<\/strong> is a free utility that adds proper table sorting capability to AutoCAD for any table type manually created tables, Data Extraction tables, or any other AutoCAD table object. It is the simplest universal solution for table sorting and is the recommended approach when Method 1 is greyed out.<\/p>\n\n\n\n<p>There are two main versions: the original <strong><a href=\"https:\/\/www.cadforum.cz\/en\/changing-the-order-of-rows-in-a-table-sorting-tables-in-autocad-tip14991\" target=\"_blank\" rel=\"noopener\">SortTable utility from CAD Forum (cadforum.cz)<\/a><\/strong> and the more feature-rich <strong>JTB Sort Table from JTB World (jtbworld.com)<\/strong>. The CAD Forum version is fully free. The JTB version has a 30-day free trial and a paid licence for ongoing use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Download the LISP File<\/strong><\/h3>\n\n\n\n<ol start=\"24\" class=\"wp-block-list\">\n<li>Go to <strong>cadforum.cz<\/strong> and search for &#8216;SortTable&#8217; in the download section, or search &#8216;SortTable LISP AutoCAD cadforum&#8217; to find the download page directly.<\/li>\n\n\n\n<li>Download the <strong>SortTable.lsp file<\/strong> and save it to a stable permanent location on your computer (e.g. C:\\AutoCAD-Tools\\SortTable.lsp).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Load the LISP File into AutoCAD<\/strong><\/h3>\n\n\n\n<ol start=\"26\" class=\"wp-block-list\">\n<li>In AutoCAD, type <strong>APPLOAD<\/strong> and press Enter to open the Load\/Unload Applications dialogue.<\/li>\n\n\n\n<li>Click <strong>Browse<\/strong> and navigate to the SortTable.lsp file.<\/li>\n\n\n\n<li>Click <strong>Open<\/strong>, then click <strong>Load<\/strong>. The command line should confirm: SortTable.lsp successfully loaded.<\/li>\n\n\n\n<li>To load automatically on every AutoCAD start: click <strong>Startup Suite Contents<\/strong> in APPLOAD, add SortTable.lsp, and click Close.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-with-right-click-context-menu-showing-Sort-Column-Ascending-option-for-built-in-table-sorting-1024x683.png\" alt=\"AutoCAD table with right-click context menu showing Sort Column Ascending option for built-in table sorting\" class=\"wp-image-552\" srcset=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-with-right-click-context-menu-showing-Sort-Column-Ascending-option-for-built-in-table-sorting-1024x683.png 1024w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-with-right-click-context-menu-showing-Sort-Column-Ascending-option-for-built-in-table-sorting-300x200.png 300w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-with-right-click-context-menu-showing-Sort-Column-Ascending-option-for-built-in-table-sorting-768x512.png 768w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-with-right-click-context-menu-showing-Sort-Column-Ascending-option-for-built-in-table-sorting.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Using the SORTTABLE Command<\/strong><\/h3>\n\n\n\n<ol start=\"30\" class=\"wp-block-list\">\n<li>Type <strong>SORTTABLE<\/strong> in the command line and press Enter.<\/li>\n\n\n\n<li>AutoCAD prompts you to select a table. Click anywhere on the AutoCAD table you want to sort.<\/li>\n\n\n\n<li>A dialogue or command line prompt appears asking which column to sort by. Enter the column number (1 = first column, 2 = second column, etc.) or click the column header if the dialogue supports it.<\/li>\n\n\n\n<li>Select the sort direction: <strong>Ascending (A to Z, 1 to 9)<\/strong> or <strong>Descending (Z to A, 9 to 1)<\/strong>.<\/li>\n\n\n\n<li>AutoCAD reorders the table rows according to the selected column and direction.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#ebfaef;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Why SORTTABLE Is Often the Best Choice:&nbsp; <\/strong>SORTTABLE works on <strong>all table types<\/strong> including Data Extraction tables where the built-in sort is greyed out. It is free, installs in under two minutes, and once loaded into the Startup Suite, is always available. For most professional AutoCAD users who work with tables regularly, adding SORTTABLE to the Startup Suite is a one-time investment that pays for itself immediately.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 4: Excel Data Link Round-Trip for Full Sort Control<\/strong><\/h2>\n\n\n\n<p>For the most flexible and powerful table sorting capability in AutoCAD, the answer is to not sort in AutoCAD at all. Instead, maintain the data in an <strong>Excel spreadsheet<\/strong>, sort it there, and link the Excel file to AutoCAD using a Data Link. The table in the drawing updates automatically when the Excel source changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Setting Up an Excel Data Link in AutoCAD<\/strong><\/h3>\n\n\n\n<ol start=\"35\" class=\"wp-block-list\">\n<li>Create and populate your table data in an <strong>Excel spreadsheet<\/strong> (e.g. a parts list, material schedule, or door schedule).<\/li>\n\n\n\n<li>In AutoCAD, go to <strong>Insert tab &gt; Linking and Extraction panel &gt; Data Link Manager<\/strong> (or type DLINKMANAGER).<\/li>\n\n\n\n<li>Click <strong>Create a new Excel Data Link<\/strong>, give it a descriptive name, and browse to the Excel file.<\/li>\n\n\n\n<li>Select the specific sheet and range of cells to link.<\/li>\n\n\n\n<li>Set link options: allow writing back to Excel, allow reading changes from Excel, and set the cell formatting options.<\/li>\n\n\n\n<li>Click OK to create the data link.<\/li>\n\n\n\n<li>In AutoCAD, type <strong>TABLE<\/strong> and press Enter. In the Insert Table dialogue, select <strong>From a data link<\/strong> and choose the data link you just created.<\/li>\n\n\n\n<li>Click OK and place the table in the drawing. The Excel data populates the AutoCAD table automatically.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sorting the Linked Table<\/strong><\/h3>\n\n\n\n<ol start=\"43\" class=\"wp-block-list\">\n<li>Open the Excel file directly and sort the data using Excel&#8217;s full sorting capabilities (Data &gt; Sort, with multiple levels and custom sort orders).<\/li>\n\n\n\n<li>Save the Excel file.<\/li>\n\n\n\n<li>In AutoCAD, go to <strong>Insert tab &gt; Linking and Extraction panel &gt; Update Data Links<\/strong> (or type DLUPDATEFROMEXTERNAL).<\/li>\n\n\n\n<li>The AutoCAD table updates immediately to reflect the sorted Excel data.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#ebfaf6;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Data Link Advantages:&nbsp; <\/strong>The Excel data link approach provides complete spreadsheet-level sort control including multi-column sorts, custom sort orders, case-sensitive sorts, and sorting by colour or icon. It also means your data has a single source of truth in Excel, reducing the risk of discrepancies between the spreadsheet and the AutoCAD table.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Alphanumeric Sort Problem: Why 1, 11, 12, 2, 3 Happens and How to Fix It<\/strong><\/h2>\n\n\n\n<p>One of the most commonly reported <strong>AutoCAD table sorting issues<\/strong> is that numbers sort as 1, 11, 12, 13, 2, 3, 4 rather than the expected 1, 2, 3, 4, 11, 12, 13. This is not a bug in AutoCAD it is the entirely predictable result of sorting text values rather than numeric values.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-sort-comparison-showing-text-sort-producing-1-10-11-12-2-3-4-versus-numeric-sort-producing-1-2-3-4-10-11-12-after-Number-data-format-applied-1024x683.png\" alt=\"AutoCAD table sort comparison showing text sort producing 1 10 11 12 2 3 4 versus numeric sort producing 1 2 3 4 10 11 12 after Number data format applied\" class=\"wp-image-554\" srcset=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-sort-comparison-showing-text-sort-producing-1-10-11-12-2-3-4-versus-numeric-sort-producing-1-2-3-4-10-11-12-after-Number-data-format-applied-1024x683.png 1024w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-sort-comparison-showing-text-sort-producing-1-10-11-12-2-3-4-versus-numeric-sort-producing-1-2-3-4-10-11-12-after-Number-data-format-applied-300x200.png 300w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-sort-comparison-showing-text-sort-producing-1-10-11-12-2-3-4-versus-numeric-sort-producing-1-2-3-4-10-11-12-after-Number-data-format-applied-768x512.png 768w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-table-sort-comparison-showing-text-sort-producing-1-10-11-12-2-3-4-versus-numeric-sort-producing-1-2-3-4-10-11-12-after-Number-data-format-applied.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Why This Happens<\/strong><\/h3>\n\n\n\n<p>When AutoCAD table cells contain <strong>text entries<\/strong> (even if those entries look like numbers), the sort algorithm compares them character by character from left to right, as text. In text sorting, &#8220;1&#8221; comes before &#8220;2&#8221; regardless of whether what follows makes the number larger. So &#8220;11&#8221; starts with &#8220;1&#8221;, which sorts before &#8220;2&#8221;, placing it before &#8220;2&#8221;, &#8220;3&#8221;, and &#8220;4&#8221; even though 11 is numerically larger.<\/p>\n\n\n\n<p>This is the same behaviour you see in Microsoft Excel when numbers are stored as text. It is not specific to AutoCAD.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Fix 1: Use Leading Zeros for Consistent Width<\/strong><\/h3>\n\n\n\n<p>The simplest fix is to <strong>format all numbers with the same number of digits using leading zeros<\/strong>. If your parts list has numbers 1 through 99, format them as 01, 02, 03&#8230; 09, 10, 11. Text sorting then produces the correct order because all entries have the same character width and the leading zeros ensure proper sequence.<\/p>\n\n\n\n<p>For part numbers with prefixes (e.g. P1, P2, P11), use P01, P02, P11 or P001, P002, P011 if numbers go above 99. This approach is also professional practice in manufacturing and engineering drawing standards where consistent part number formats are required.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Fix 2: Use the Data Type Setting in Table Cells<\/strong><\/h3>\n\n\n\n<p>In AutoCAD 2010 and later, table cells can be formatted with a specific <strong>data format<\/strong> that tells AutoCAD to treat cell content as a number rather than text. To set this:<\/p>\n\n\n\n<ol start=\"47\" class=\"wp-block-list\">\n<li>Double-click inside the table to enter editing mode.<\/li>\n\n\n\n<li>Select the cells in the column that contains numeric values.<\/li>\n\n\n\n<li>Right-click and choose <strong>Data Format<\/strong>.<\/li>\n\n\n\n<li>In the Table Cell Format dialogue, change the data type from <strong>Text<\/strong> to <strong>Number<\/strong>.<\/li>\n\n\n\n<li>Click OK. The cells are now formatted as numbers.<\/li>\n\n\n\n<li>Sort the column again. AutoCAD now performs a numeric sort (1, 2, 3&#8230; 10, 11, 12) rather than a text sort.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Fix 3: Sort in Excel<\/strong><\/h3>\n\n\n\n<p>If the table is linked to Excel or can be exported to Excel, perform the sort in Excel where numeric sorting always works correctly regardless of cell formatting. Use the Method 4 Excel link workflow to maintain the sorted data in AutoCAD.<\/p>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#faebf1;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>The Root Cause Summary:&nbsp; <\/strong>If AutoCAD is sorting numbers as text (1, 11, 12, 2, 3), the cells are <strong>formatted as Text data type rather than Number<\/strong>. The fixes in order of simplicity: (1) Use leading zeros for consistent digit width. (2) Change cell data format to Number. (3) Sort in Excel using a data link. All three produce the correct numeric sequence.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Sorting a Parts List Table: Complete Worked Example<\/strong><\/h2>\n\n\n\n<p>To tie together the methods above, here is a complete workflow for creating and sorting a mechanical parts list table in <strong>AutoCAD<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-parts-list-table-comparison-showing-unsorted-rows-versus-alphabetically-sorted-by-Part-Name-column-1024x683.png\" alt=\"AutoCAD parts list table comparison showing unsorted rows versus alphabetically sorted by Part Name column\" class=\"wp-image-553\" srcset=\"https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-parts-list-table-comparison-showing-unsorted-rows-versus-alphabetically-sorted-by-Part-Name-column-1024x683.png 1024w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-parts-list-table-comparison-showing-unsorted-rows-versus-alphabetically-sorted-by-Part-Name-column-300x200.png 300w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-parts-list-table-comparison-showing-unsorted-rows-versus-alphabetically-sorted-by-Part-Name-column-768x512.png 768w, https:\/\/simutecra.com\/blog\/wp-content\/uploads\/2026\/06\/AutoCAD-parts-list-table-comparison-showing-unsorted-rows-versus-alphabetically-sorted-by-Part-Name-column.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong>Step<\/strong><\/td><td><strong>Action<\/strong><\/td><td><strong>Command \/ Method<\/strong><\/td><\/tr><tr><td>1<\/td><td>Create the parts list table: go to Home &gt; Annotation &gt; Table, set 5 columns (Item No., Part Name, Part Number, Material, Qty), set appropriate number of rows for the parts list<\/td><td>TABLE command<\/td><\/tr><tr><td>2<\/td><td>Enter header row labels in the first row: Item No., Part Name, Part Number, Material, Qty<\/td><td>Double-click cells to enter edit mode<\/td><\/tr><tr><td>3<\/td><td>Enter all part data row by row. For Item No. column, use leading zeros: 01, 02, 03 etc.<\/td><td>Type directly in cells; Tab to move between cells<\/td><\/tr><tr><td>4<\/td><td>Format the Qty column cells as Number data type: select the Qty cells, right-click &gt; Data Format &gt; Number<\/td><td>Right-click &gt; Data Format<\/td><\/tr><tr><td>5<\/td><td>To sort alphabetically by Part Name: right-click the Part Name column header &gt; Sort Column Ascending<\/td><td>Built-in sort (Method 1)<\/td><\/tr><tr><td>6<\/td><td>To sort by Item No. numerically: right-click the Item No. column header &gt; Sort Column Ascending (leading zeros ensure correct order)<\/td><td>Built-in sort (Method 1)<\/td><\/tr><tr><td>7<\/td><td>If sort is greyed out (Data Extraction table): load SORTTABLE LISP, type SORTTABLE, select table, choose column 2 (Part Name), choose Ascending<\/td><td>SORTTABLE LISP (Method 3)<\/td><\/tr><tr><td>8<\/td><td>Export the parts list to Excel for further manipulation: right-click the table &gt; Export &gt; browse to save location as .xlsx<\/td><td>Right-click &gt; Export<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Using Table Styles to Organise and Manage Your Tables<\/strong><\/h2>\n\n\n\n<p>A well-designed <strong>Table Style<\/strong> makes AutoCAD tables easier to read, sort, and maintain. Table Styles define the formatting for each row type (title row, header row, data rows) including font, size, alignment, background colour, and border style. Setting up a Table Style before creating tables ensures consistency across all tables in a drawing and makes sorted tables visually clear.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Creating a Table Style<\/strong><\/h3>\n\n\n\n<ol start=\"53\" class=\"wp-block-list\">\n<li>Type <strong>TABLESTYLE<\/strong> and press Enter (or go to Home &gt; Annotation panel dropdown &gt; Table Style).<\/li>\n\n\n\n<li>Click <strong>New<\/strong> and give the style a descriptive name (e.g. PARTS-LIST or REVISION-SCHEDULE).<\/li>\n\n\n\n<li>Configure each row type (Title, Header, Data) separately:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title row:<\/strong> Bold, centred, larger font size, solid background fill for visual distinction<\/li>\n\n\n\n<li><strong>Header row:<\/strong> Bold, centred, lighter background fill to differentiate from data rows<\/li>\n\n\n\n<li><strong>Data rows:<\/strong> Regular weight, left-aligned for text columns, right-aligned for numeric columns<\/li>\n<\/ul>\n\n\n\n<ol start=\"56\" class=\"wp-block-list\">\n<li>Click OK to save the style. Select it as the current table style before creating new tables.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table class=\"has-background\" style=\"background-color:#eefaeb;border-style:none;border-width:0px\"><tbody><tr><td><\/td><td class=\"has-text-align-left\" data-align=\"left\"><strong>Professional Tip:&nbsp; <\/strong>Create separate table styles for different table types: one for parts lists (with enough column width for part names), one for revision schedules (narrower columns, more rows), and one for door\/window schedules (wider for description columns). Save these in your company drawing template file so they are available in every new drawing automatically.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>AutoCAD Table Sorting Compared to Excel: What Is and Is Not Possible<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong>Feature<\/strong><\/td><td><strong>AutoCAD Built-In Sort<\/strong><\/td><td><strong>AutoCAD LISP Sort<\/strong><\/td><td><strong>Excel via Data Link<\/strong><\/td><\/tr><tr><td>Sort by single column ascending\/descending<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td>Sort by multiple columns (primary + secondary)<\/td><td>Limited AutoCAD 2014+ only<\/td><td>Depends on LISP version<\/td><td>Yes, full multi-level sort<\/td><\/tr><tr><td>Numeric sort (1, 2, 3 not 1, 11, 12)<\/td><td>Yes if cells formatted as Number data type<\/td><td>Depends on LISP version<\/td><td>Yes, always numeric when cells are numbers<\/td><\/tr><tr><td>Sort alphabetically (case-insensitive)<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td>Sort Data Extraction tables after insertion<\/td><td>No, greyed out<\/td><td>Yes, works on all table types<\/td><td>Not applicable<\/td><\/tr><tr><td>Custom sort order (e.g. not A-Z or 1-9)<\/td><td>No<\/td><td>No<\/td><td>Yes, custom lists in Excel<\/td><\/tr><tr><td>Sort by cell colour or icon<\/td><td>No<\/td><td>No<\/td><td>Yes, Excel 2007+ feature<\/td><\/tr><tr><td>Sort preserves merged cells<\/td><td>Limited<\/td><td>Yes (JTB version)<\/td><td>N\/A, Excel handles merges differently<\/td><\/tr><tr><td>Sort requires additional software<\/td><td>No<\/td><td>Free LISP download<\/td><td>Excel required<\/td><\/tr><tr><td>Re-sort without re-running any wizard<\/td><td>Yes (manual tables)<\/td><td>Yes (all table types)<\/td><td>Yes (sort in Excel, update link)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Table Sorting Problems and Fixes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table has-medium-font-size\"><table><tbody><tr><td><strong>Problem<\/strong><\/td><td><strong>Cause<\/strong><\/td><td><strong>Fix<\/strong><\/td><\/tr><tr><td>Sort option is greyed out in right-click menu<\/td><td>Table was created by Data Extraction wizard native sort is not available after insertion<\/td><td>Use Method 3 (SORTTABLE LISP) or re-open Data Extraction wizard (Method 2)<\/td><\/tr><tr><td>Numbers sort as 1, 11, 12, 2, 3 instead of 1, 2, 3<\/td><td>Table cells are formatted as Text data type, not Number<\/td><td>Change cell data format to Number (right-click &gt; Data Format &gt; Number), or use leading zeros, or sort in Excel<\/td><\/tr><tr><td>Sort works but header row gets sorted into the data rows<\/td><td>Table sort is treating the header row as a data row<\/td><td>Re-run sort and look for a setting to exclude header rows. In SORTTABLE LISP, confirm that the header rows selection is set correctly<\/td><\/tr><tr><td>Right-click on table shows no table options at all<\/td><td>Clicking outside the table border rather than inside it, or the table is locked<\/td><td>Click precisely inside a table cell. Check the Properties panel (Ctrl+1) to see if the table or individual rows are locked unlock them if so<\/td><\/tr><tr><td>Sort resets after reopening the drawing<\/td><td>Sort was applied but the drawing was not saved<\/td><td>Save the drawing immediately after sorting. For Data Extraction tables, ensure the .dxe file is also saved with updated sort settings<\/td><\/tr><tr><td>Table export to Excel loses sort order<\/td><td>Excel file is created fresh from the current table state this should preserve sort order<\/td><td>Verify the table is in the correct sort order before exporting. The exported Excel file will reflect the table&#8217;s current state<\/td><\/tr><tr><td>SORTTABLE LISP fails to load or SORTTABLE command not found<\/td><td>LISP file path has changed, or APPLOAD did not load it successfully<\/td><td>Type APPLOAD, verify the LISP file path is still valid. Re-load the file if needed. Check the Startup Suite is pointing to the correct file location<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Frequently Asked Questions (FAQ)<\/strong><\/h2>\n\n\n\n<p><strong>How do you sort a table in AutoCAD?<\/strong><\/p>\n\n\n\n<p>To sort a manually created table in AutoCAD, click inside the table to select it, right-click the column header of the column you want to sort by, and choose <strong>Sort Column Ascending<\/strong> or <strong>Sort Column Descending<\/strong>. AutoCAD reorders all data rows based on that column&#8217;s content. If this option is greyed out (common with Data Extraction tables), use the free <strong>SORTTABLE LISP utility<\/strong>: download from cadforum.cz, load with APPLOAD, then type SORTTABLE, select the table, and choose the sort column and direction.<\/p>\n\n\n\n<p><strong>Why is the sort option greyed out on my AutoCAD table?<\/strong><\/p>\n\n\n\n<p>The sort option is greyed out on AutoCAD tables when the table was created by the <strong>Data Extraction wizard (DATAEXTRACTION command)<\/strong>. AutoCAD does not support native re-sorting of Data Extraction tables after they have been inserted into the drawing. The solutions are: (1) Re-open the Data Extraction wizard, navigate to Page 5 (Refine Data), and resort the preview data before reinserting the table. (2) Use the free SORTTABLE LISP utility which works on all table types including Data Extraction tables.<\/p>\n\n\n\n<p><strong>How do I sort an AutoCAD table numerically (1, 2, 3 not 1, 11, 12)?<\/strong><\/p>\n\n\n\n<p>AutoCAD sorts numbers as text by default when cells contain text-formatted data, producing 1, 11, 12, 2, 3 instead of 1, 2, 3. To fix this: (1) Select the cells containing numbers, right-click and choose <strong>Data Format &gt; Number<\/strong> to format them as numeric data \u2014 AutoCAD will then sort numerically. (2) Use leading zeros in your number entries (01, 02, 03&#8230; 09, 10, 11) so text sorting produces the correct sequence. (3) Sort in Excel using a Data Link, where numbers are always sorted numerically when the cells are formatted as numbers.<\/p>\n\n\n\n<p><strong>How do I sort a Data Extraction table in AutoCAD?<\/strong><\/p>\n\n\n\n<p>To sort a Data Extraction table in AutoCAD: (1) Re-run the Data Extraction wizard by selecting the table, right-clicking, and choosing Edit Data Extraction, or by typing <strong>DATAEXTRACTION<\/strong> and choosing to edit the existing extraction. Navigate to Page 5 (Refine Data) and click column headers to sort. Complete the wizard and choose to update the existing table. (2) Alternatively, download and load the free SORTTABLE LISP utility from cadforum.cz, type SORTTABLE, click the table, and specify the sort column.<\/p>\n\n\n\n<p><strong>What is the SORTTABLE command in AutoCAD?<\/strong><\/p>\n\n\n\n<p><strong>SORTTABLE<\/strong> is a command provided by a free LISP (AutoCAD programming language) utility that adds proper table sorting capability to AutoCAD. It is not a built-in AutoCAD command it must be downloaded from CAD Forum (cadforum.cz) as a .lsp file and loaded using the APPLOAD command. Once loaded, SORTTABLE works on all AutoCAD table types including manually created tables and Data Extraction tables, allowing sort by any column in ascending or descending order.<\/p>\n\n\n\n<p><strong>Can I sort an AutoCAD table alphabetically?<\/strong><\/p>\n\n\n\n<p>Yes. To sort an AutoCAD table alphabetically: click inside the table to select it, right-click the column header of the text column you want to sort by, and choose <strong>Sort Column Ascending<\/strong> for A to Z order or <strong>Sort Column Descending<\/strong> for Z to A order. If the sort option is greyed out (Data Extraction table), load the SORTTABLE LISP utility and use the SORTTABLE command instead. The sort is case-insensitive in most AutoCAD versions.<\/p>\n\n\n\n<p><strong>How do I link an AutoCAD table to Excel?<\/strong><\/p>\n\n\n\n<p>To link an AutoCAD table to Excel: (1) Create your data in an Excel spreadsheet. (2) In AutoCAD, go to Insert &gt; Linking and Extraction &gt; Data Link Manager, create a new Excel data link pointing to your file, and select the cell range. (3) Create a new table (TABLE command) and choose &#8216;From a data link&#8217;, selecting the link you just created. (4) To update the AutoCAD table after making changes in Excel: go to Insert &gt; Update Data Links or type <strong>DLUPDATEFROMEXTERNAL<\/strong>. Sorting in Excel and then updating the link keeps the AutoCAD table sorted without needing any in-AutoCAD sort tools.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Sorting tables in <strong>AutoCAD<\/strong> is not difficult once you understand which type of table you are working with and which method applies to it. The built-in column sort handles most manually created tables in seconds. Data Extraction tables require re-running the wizard or using the free SORTTABLE LISP utility. Excel data links provide full spreadsheet-level sort control for complex or frequently updated tables.<\/p>\n\n\n\n<p>The alphanumeric sort issue (1, 11, 12, 2, 3) is the single most common frustration with AutoCAD table sorting, and it has a straightforward fix once you understand that it results from cells being formatted as text rather than numbers. Applying Number data format to numeric columns, or using leading zeros, resolves it immediately.<\/p>\n\n\n\n<p>With the four methods in this guide and the troubleshooting table covering every common failure mode, you have everything needed to sort any <strong>AutoCAD table<\/strong> correctly regardless of how it was created or what data it contains.<\/p>\n\n\n\n<p><strong>Continue exploring AutoCAD: read Dynamic Block Lookup Tables Explained for the next related topic, or return to the <a href=\"https:\/\/simutecra.com\/blogs\/autocad-tutorials-for-beginners-and-professionals\/\" data-type=\"link\" data-id=\"https:\/\/simutecra.com\/blogs\/autocad-tutorials-for-beginners-and-professionals\/\">complete AutoCAD Tutorials for Beginners and Professionals guide.<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AutoCAD tables are among the most useful but underappreciated tools in the software. A well-built table can serve as a revision schedule, a parts list, a door schedule, a material takeoff, or a bill of materials directly inside your drawing. But the moment you need to sort that table alphabetically, numerically, or by a specific [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33,113,112],"class_list":["post-549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-autocad","tag-autocad-tables","tag-tables-in-autocad"],"_links":{"self":[{"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":3,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions\/555"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/media\/553"}],"wp:attachment":[{"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simutecra.com\/blog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}