Please look at this image:
The image shows a "diff" of two similar but not identical index structures on a table. Problems:
As you can see, the indexes 1 and 2 are named differently, so they should ne be compared. They should be listed in different lines.
The statistics 3 and 4 are identical. They should end up in the same line with background color white. There is no difference at all.
5 and 6 are the same again. They just happen to be in a different order.
I propose the following change: Match all objects by name first, then only diff objects that are named exactly the same. Do not let the diff engine do a text diff for all objects because as you can see that technique is really really buggy