[fix] Chapters sorting was broken on Python 3.x