Skip to content
sorting algorithm

File:Merge_sort_animation.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ181593· pop 60· linked from 446 articles

sorting algorithm

Sign in to save

Also known as asc, desc, sort

algorithm that puts elements of a list in a certain order

AI overview

A sorting algorithm is a step-by-step procedure that arranges items in a list into a specific order, such as from smallest to largest. Sorting matters because it makes data easier to work with and helps computers find information quickly.

AI-generated from the Wikipedia summary — may contain errors.

Wikidata facts

Show 2 more facts
Commons category
Sort algorithms
Sources (3)

via Wikidata · CC0

~33 min read

Article

Merge sort

In computer science, a sorting algorithm is an algorithm that puts elements of a list into an order. The most frequently used orders are numerical order and lexicographical order, and either ascending order or descending order. Efficient sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) that require input data to be in sorted lists. Sorting is also often useful for canonicalizing data and for producing human-readable output.

Gallery (5)

Connections

Categories