print depth ranks in specified order