Tests for sorts. 

Basically, subdirectories should only be traversed after the parent directory's contents have been. It's a tricky problem to solve!