mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 17:34:16 -04:00
convert time to sort
This commit is contained in:
14
app/assets/javascripts/sortAlphanumeric.js
Normal file
14
app/assets/javascripts/sortAlphanumeric.js
Normal file
@@ -0,0 +1,14 @@
|
||||
(function (window) {
|
||||
// document.addEventListener("DOMContentLoaded", function() {
|
||||
// const rows = document.querySelectorAll('td.table-field.file-name');
|
||||
|
||||
// rows.forEach(row => {
|
||||
// let sortValue = row.getAttribute('data-sort-value');
|
||||
// if (sortValue) {
|
||||
// // Remove non-numeric characters to ensure numerical comparison
|
||||
// sortValue = sortValue.replace(/\D/g, '');
|
||||
// row.setAttribute('data-sort-value', sortValue);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
})(window);
|
||||
Reference in New Issue
Block a user