sort a folder of the same name as a notebook first

fixes #701