fix sorting of depths in book view