gen-meta-support: reverse XML entity sorting

Rebase of gh-595 onto dev_4_4.

This prevents us from having to loop over all of the XML entities for
every single MetadataStore call.  Total run time is reduced from ~20
minutes locally to ~11 minutes.

Conflicts:

	components/autogen/src/gen-meta-support.sh