This document discusses sorting databases. It defines sorting as arranging data alphabetically or numerically. There are two types of sorting order: ascending and descending. Ascending order is from A-Z or 0-9, while descending is the opposite order from Z-A or 9-0. When sorting a database, there can be a primary sort on one field and a secondary sort on another field to further organize the data. The document provides an example of sorting by student number as the primary key, last name in descending order as the primary sort, and age in ascending order as the secondary sort.