Did you know Cards Games

Cycle sort

Cycle sort: in-place, unstable sorting algorithm. No. 947,090 of 4,515,532 cards by fame.

Cycle sort: quick facts

Description
In-place, unstable sorting algorithm
Rarity in the game
Rare card
In its topic
No. 3,778 of 5,523 “Software” cards
Wikipedia and Wikimedia
5 linked pages (all languages)
Wikidata
Q5198176
Wikipedia page views
about 760 a month (November 2025 – October 2026)

Fame score: Wikipedia page views (July 2015 – October 2026, 39 languages). Updated .

Play Masterpiece: match works to their artist →

Picture illustrating “Cycle sort”
Photo: Olathe, Public domain (Wikimedia Commons)

Cycle sort: summary

Cycle sort is an in-place, unstable sorting algorithm, a comparison sort that is theoretically optimal in terms of the total number of writes to the original array. It is based on the idea that the permutation to be sorted can be factored into cycles, which can individually be rotated to give a sorted result. Unlike nearly every other sort, items are never written elsewhere in the array simply to push them out of the way of the action.

Source: Wikipedia (CC BY-SA 4.0)

More cards: Software

The best-known of the 5,523 “Software” cards

This card's topics

“Cycle sort” is one of the 4,515,532 cards of Did you know Cards, the free Wikipedia card game where you learn as you play: every card is a piece of knowledge from Wikipedia. Open boosters, complete your albums and challenge other players to duels.