abitidy: Refactor sorting logic

The new sorting logic sorts by the following (in the given order):

1. XML element name
2. Effective name
3. Type id

Effective name is the value of the 'name' attribute for all nodes except
nodes which represent anonymous types. For anonymous types, the
effective name is null.

Bug: 239910948
Change-Id: I532b977ba88c1a0475faa753e5ccda88a54329d5
Signed-off-by: Sid Nayyar <sidnayyar@google.com>
1 file changed