break ties when sorting by ranks in assembly.allmaps.path()