solved the mysterious chapter sort problem