Hi Thomas,
In your last email you suggested that on using SortCovDsStart[CD] I may not need to use a separate replacement rule for commuting the covariant derivatives in the desired way in a given term. While this is true for a certain set of terms, including the term in the notebook attached to my first email in this thread, I find that this doesn't work for all terms.
In the notebook attached to this email I have shown two lists, named 'SortYes' and 'SortNo'. SortCovDsStart[CD] works for the terms in the first list but not those in the second list. I wonder what criterion determines whether SortCovDsStart[CD] will work for a given term.
Is there any other Mathematica/xAct command that can push all the boxes in a given term to the right, and which works on all terms?
Cheers
Sukruti