> ## Documentation Index
> Fetch the complete documentation index at: https://sensible.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Lines

A *line* is a rectangular region containing text. Sensible represents lines as gray boxes. Lines can occupy the same height on the page:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/line_concept.png)

In other words, Sensible separates lines using any whitespace, not just newlines.

### Line sorting

Sensible sorts lines primarily by their height on the page (their y-axis position) and secondarily by their left-to-right position (their x-axis position).

For example, this image shows which lines precede and succeed a target line:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/line_sort_1.png)

When text such as handwriting is slightly misaligned vertically, line sorting is less intuitive. In the following image, a human reader may interpret the red line as succeeding the target line, but for Sensible it *precedes* the target line because it's higher on the page:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/line_sort_2.png)

To configure this default sorting behavior, see [the Sort Lines parameter](/senseml-reference/field-query-object/method).

### Line grouping

**Label method**

For the Label method, Sensible groups lines together using whitespace and x- and y-axis positions. Sometimes, Sensible's line groups are more restrictive than a human reader might expect. In particular, Sensible groups lines separated by vertical space solely if they align at the *left* edge of each line boundary by default:

![Click to enlarge](https://mintlify.s3-us-west-1.amazonaws.com/sensible/assets/v0/images/screenshots/line_grouping.png)

To capture unaligned lines, use the [Document Range](/senseml-reference/methods/document-range) method.
