Fix missing separator when sorting by notebook