---
name: "drm_mode_sort"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_mode_sort"
---

# drm\_mode\_sort(9)

sort mode list

## NAME

drm\_mode\_sort - sort mode list

## SYNOPSIS

**void drm\_mode\_sort(struct list\_head \*** *mode\_list***);**

## ARGUMENTS

*mode\_list*

list of drm\_display\_mode structures to sort

## DESCRIPTION

Sort *mode\_list* by favorability, moving good modes to the head of the list.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
