Merge pull request #1421 from corubba/feature/sorting

Sort records label-wise right to left
This commit is contained in:
Matt Scott 2023-03-04 10:56:59 -05:00 committed by GitHub
commit f5ddcc5809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,17 @@
{% else %} {% else %}
targets: [5] targets: [5]
{% endif %} {% endif %}
},
{
targets: [0],
className: "text-right",
data: {
'_': "0",
'sort': function (row, _type, _set, _meta) {
const data = row[0] || '';
return data.split('.').reverse().join('.');
},
},
} }
], ],
{% if domain.type != 'Slave' %} {% if domain.type != 'Slave' %}