make sorting work for both aliases and url without losing sync

git-svn-id: https://svn.bgdi.admin.ch/mf-chsdi/trunk/chsdi@4194 e100092c-b5e6-494f-8bdf-19c1ff2a4001