TList claims to have a sorting function, but it looks like it just sorts based on the names of the objects. Looking at the TList::Sort (Bool_t order=kSortAscending) function, it doesn’t appear to have a way to specify the comparison function.
This problem is looks like it wasn’t resolved here: