WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-5921b3-f.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 124574 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: DataTable Custom Orders
davesmacer
pro premium priority asked 2 years ago
Hi,
I was wondering if there's any way that I can execute custom sorting of the datatable. In specific, I have a date field on my table. Such field is formatted as "mm/dd/yyyy" so when I sort the column, it gets me the string ordering, not the actual desired date order. Is there a way that I can achieve custom date sorting. I'm using html with attributes, not js initialization.
Best Regards,
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.4.1
- Device: Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No