-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I have a list interface with the following :format:
'((name nil 52 t)
(version nil 24 t)
(size nil 10 bui-list-sort-numerically-2 :right-align t)
(lastUnpacked bui-list-get-time 32 bui-list-sort-numerically-3 :right-align t)
(lastUnpackedBy nil 21 t)
(status nil 7 t))The lastUnpacked date is given as seconds.
Rendering the data, via bui-list-get-time works like a charm; no issues there. But sorting the column goes to Hell. The dates are in, seemingly, a random order or another column is being used to sort things when the third column is told to be sorted because similar names in the name column end up getting bunched together.
If I replace bui-list-get-time with nil, sorting works exactly as I'd expect and the dates are in proper order (though displayed as Epoch seconds instead of being formatted to date/times).
I thought maybe that the original numbers weren't being kept and so it was trying to sort Emacs time objects and tried removing bui-list-sort-numerically-3 but that just resulted in BUI saying it wasn't able to sort the column.