Sorted access to directories (second try)