Search
11091 results 61-70
Reference
language.aria.sortDescending
› Language strings used for WAI-ARIA specific attributesARIA label that is added to the table headers when the column may be sorted descending by activing the column (click or return when focused). Note that the column header text is prefixed to this string.language.aria.sortAscending
› Language strings used for WAI-ARIA specific attributesARIA label that is added to the table headers when the column may be sorted ascending by activating the column (click or return when focused). Note that the column header text is prefixed to this string.
Examples
- SearchPanes › Abstract Typesallow the panes to sort correctly for abstract data
- Buttons › Excel - auto filteruser quickly filter and sort data in the exported
- DataTables › Ordering plug-ins (with type detection)you can have DataTables sort data in any manner
- DataTables › Language - Comma decimal placeDataTables' type detection and sorting algorithms to sort numbers in your table.
- DataTables › ISO8601 detectionDataTables supports ordering of ISO8601 date / time formats without any additional configuration. The Start date column in the example below shows this. Click on the column header to sort chronologically.
- RowReorder › Restricted column ordering (sorting)case restricts the column sorting that can be applied
- DataTables › Default ordering (sorting)With DataTables you can alter the ordering characteristics of the table at initialisation time. Using the
order
initialisation parameter, you can set the table to display the data in exactly the order that you want. Theorder
parameter is an array of arrays where the first value of the inner array is the column to order on, and the second is'asc'
(ascending ordering) or'desc'
(descending ordering) as required.order
is a 2D array to allow multi-column ordering to be defined. The table below is ordered (descending) by the Age column. - DataTables › Ordering plug-ins (no type detection)Although DataTables will order a number of data types using the built in methods, when dealing with more complex formatted data, it can be desirable to define the ordering order yourself. Using plug-in ordering functions, you can have DataTables order data in any manner you wish. This is done by using the
columns.type
parameter, in combination with a ordering plug-in. The ordering plug-in can be of any level of complexity (natural ordering for example can be fairly complex while also very powerful), and is defined by attaching to theDataTable.ext.type.order
object. For more information about ordering plug-ins, creating them and their requirements, please refer to the plug-in development documentation. This example shows ordering with using an enumerated type. A wide variety of ready made ordering plug-ins can be found on the DataTables plug-ins page.
Forum
- 20th Feb 2023Order or Sort column by specific attributeautomatically detect and then sort on. See docs here.
- 10th Feb 2023Sort by placeholder if no value setHere is an example. But I cant get the column to sort at all in the example for some reason. https://live.datatables.net/ziberalu/1/edit
- 9th Feb 2023How can I sort dates in this format?Use columns.render to create orthogonal data for the sort operation. Parse the data and only return the first date. Kevin
- 7th Feb 2023Sort Order indicators in 1.12 causes columns to change width after it has been renderedmake space for the sorting icons in the table
- 27th Jan 2023sort by 2 columnsI want to sort by two columns. I
- 20th Jan 2023How do I sort by date in dd.mm.yyyy format.Ok so I managed to get it working with DataTable.datetime('dd.mm.yyyy'); added , but it still does not sort accordingly :( Any advice please?
- 14th Dec 2022Datatables won't sort ajax from join queryrun this query and sort it fine without datatables.
- 10th Dec 2022Sort by Date works in Google Sheets, but DataTables plugin sees dates as text. Need no javascript...specify then it can sort that column using that
- 8th Dec 2022Why is table displaying multiple sort arrows?Thank you! I was able to find the issue, which was some style overrides we had in our main application.css stylesheet. I was able to remove the extra sort arrows as a result. Thanks for your help!
- 15th Nov 2022Modify sort behavior column header to only trigger sorting when I click on the header nameand unbind the DataTables sort listener from the th,