Sort repos on directory (fixes #178)