Create a new index for a TTree

Thanks a lot Wile,

This sounds good. Can I skip the intermediate ROOT file step? I’m working with 2 trees but I only saved the sorted one at the very end. Would that trigger a conflict of some kind?
Thanks.