show line boxes in correct order, fixes #20