fix sorting in horbook