Load repository from a given dir ordered by filename

Fixes: #1020