[GH-ISSUE #704] Sorting by date time still doesn't work #490

Closed
opened 2026-03-02 15:59:11 +03:00 by kerem · 1 comment
Owner

Originally created by @eugeniob90 on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/704

See the document attached.
tinyfilemanagerissue

Originally created by @eugeniob90 on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/704 See the document attached. ![tinyfilemanagerissue](https://user-images.githubusercontent.com/98108689/150370515-3efd59cf-cfab-4c18-9b5f-01f9e95181e0.png)
kerem closed this issue 2026-03-02 15:59:11 +03:00
Author
Owner

@Sundwalltanner commented on GitHub (May 3, 2022):

I believe this is due to the DataTables plug-in basing whether it uses the text within the <td> element or the data-sort attribute of that element on the first row in the table. I think this is fine as long as you're at the root, but if you're anywhere deeper than that where the first row of the table is a back button and a bunch of empty cells, those empty cells don't have data-sort attributes, so the DataTables plug-in ends up using the text within each <td> element and completely ignores data-sort.

Solving this should be as simple as giving each of the <td> elements in the row with the back button a data-sort attribute with an empty string value.

This is the same problem causing issue #485.

<!-- gh-comment-id:1116677823 --> @Sundwalltanner commented on GitHub (May 3, 2022): I believe this is due to the DataTables plug-in basing whether it uses the text within the `<td>` element or the `data-sort` attribute of that element on the first row in the table. I think this is fine as long as you're at the root, but if you're anywhere deeper than that where the first row of the table is a back button and a bunch of empty cells, those empty cells don't have `data-sort` attributes, so the DataTables plug-in ends up using the text within each `<td>` element and completely ignores `data-sort`. Solving this should be as simple as giving each of the `<td>` elements in the row with the back button a `data-sort` attribute with an empty string value. This is the same problem causing issue #485.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#490
No description provided.