---
title: Sort Vet Lists
slug: help/en-us/dairycomp/sort-vet-lists
docTags: 
createdAt: 2026-01-26T11:43:20.599Z
---

Normally, vet lists are sorted by animal ID numbers. You can change this by adding a BY statement to the command. For example, to sort by pen: `BY PEN`.

:::hint{type="warning"}
<font color="#F97316">**IMPORTANT**</font>**:&#x20;**&#x43;hanging the sort order of a vet list will affect the order in which vet exam data is entered. See [Enter Result Codes and Remarks](docId\:G9ZWtYgqV-mak8uOyN2KR) to learn more.
:::



