Sort directories in BSA archives