fixxref: sort subdirectories

This ensures that symbols in a directory with a higher version number shadow
symbols with a lower version.

Also drop the revisitation check. The 'links' data is a hashmap, there are no
duplicate entries anyway. This way one can use --extra-dir to specify the wanted version.

Fixes #644111
fixxref: provide link targets for sme gobject base types