# Reordering timelines with TVT

The reordering option **eases the detection of patterns by grouping similar cases**.

In addition to the default (**Original**) ordering, four vertical reordering options are available.

### Reordering options

* **Clusters**

Clusters reorders the timelines according to how similar their event structures are.

* **Event count**

The event counts option reorders the timelines according to the number of events.

* **Path length**

Path length reorders the timelines according to path length i.e. the time from birth to the time when a person exits the cohort.

* **Age**

The age option reorders the timelines according to age. Original order is the initial order data is read from Atlas or from a file.

* **Horizontal alignment**

The Horizontal alignment offers **two reordering methods**. The **first entry** option arranges timelines according to the first event on the timeline and the **last entry** option according to the last event. When ordering with the first or last entry event option the time from birth to the first cohort entry event is not shown.

![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-046f7c8819fc571faea6e2d182eade19c7f09d4d%2Ftvt3.png?alt=media) ![](https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-e0d8475ca666ee9cc198047aeaf2b5a26d882a0a%2F2022-05-20_14-10-53.png?alt=media)

Once alignments are selected complete the reordering by selecting `Plot settings` -> `Timeline`.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-7e9087ff6c4cc38d4382f3a3f56e8fab7eb27875%2Ftvt2.png?alt=media" alt=""><figcaption></figcaption></figure>
