lkosson / full-address-column

Thunderbird add-on to show full sender and recipient address column in message list
MIT License
39 stars 11 forks source link

Custom sort function for custom columns. #16

Closed AmanRathoreP closed 2 months ago

AmanRathoreP commented 2 months ago

I recently created a TB addon which displays relative date/time but because date/time is relative TB is unable to sort it only using the string data of that particular row. Currently I'm setting sortable to False I would like to add a sort function, but I don't know how to do it. Will it be possible for TB 115.10.0+ to sort via a custom sort function?

lkosson commented 2 months ago

Provide sortCallback to your ThreadPaneColumns.addCustomColumn call. The callback should return numeric value which will be used to order rows. For further assistance, see Thunderbird forums.