# Similar terms are not collected

+1 vote

Hi,

I'm trying to derive Ricci scalar in terms of derivatives of g inverse. The last three terms of the expression are similar, but they are still not collected.

For more information see the full notebooks: common.cnb Ricci_scalar.cnb (See the last line for the above referred expresssion.)

I think it's related to the bug report: sort_product bug with position=independent and identical variables Action of sort_product depends on the choice of index

Thanks.