compareTo

open fun compareTo(@Nullable bookmark: Bookmark): Int

Compares this bookmark with another bookmark for ordering. Bookmarks are first compared by sort key, then by page index.

Return

A negative integer, zero, or a positive integer as this bookmark is less than, equal to, or greater than the specified bookmark.

Parameters

bookmark

The bookmark to compare with.