gnome sort

sorting algorithm
Intangible Stable Sorting Algorithm Q936797
gnome sort
Simpsons contributor · Public Domain · Wikimedia

Facts

6 properties
Average time complexity
O(n^2)
Best-case time complexity
\Omega(n)
Named after
garden gnome[2]
Worst-case time complexity
O(n^2)
🏷️ Also known as
en stupid sort en gnome sort de Gnomesort fa مرتب‌سازی گورزاد fa مرتب سازی گورزاد fa مرتب ساز Gnome fa الگوریتم مرتب سازی گورزاد fa مرتب ساز گورزاد hu kertitörpe-rendezés ja ノームソート ko 난쟁이 정렬 pl Sortowanie gnoma pl Sortowanie gnome ru гномья сортировка th การเรียงลำดับแบบโนม tr Cüce sıralaması uk сортування гнома zh 侏儒排序
🔖 Identifiers · 4
Dictionary of Algorithms and Data Structures ID
gnomeSort, stupidSort
Freebase ID
/m/02l53w
Microsoft Academic ID (discontinued)
69838596
Rosetta Code page ID
Sorting_algorithms/Gnome_sort

Report an error or request removal Lineage (PROV-JSON)

🔗 Connections
Instance of 1
Named after 1
Uses 1
Press Enter · cited answer in seconds

Summary

gnome sort is a stable sorting algorithm[1].

References

Programmatic citations — every numbered marker resolves to a verifiable graph row below.

Direct Wikidata claims

  1. [2] ↑ . wikidata.org.
  2. [3] ↑ . wikidata.org.

Class ancestry

  1. [1] ↑ . Wikidata. wikidata.org.

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). gnome sort. Retrieved November 23, 2026, from https://4ort.xyz/entity/gnome-sort
MLA “gnome sort.” 4ort.xyz Knowledge Graph, 4ort.xyz, 23 Nov. 2026, https://4ort.xyz/entity/gnome-sort.
BibTeX @misc{4ortxyz_gnome-sort_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{gnome sort}}, year = {2026}, url = {https://4ort.xyz/entity/gnome-sort}, note = {Accessed: 2026-11-23}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): gnome sort — https://4ort.xyz/entity/gnome-sort (retrieved 2026-11-23)

Canonical URL: https://4ort.xyz/entity/gnome-sort · Last refreshed:

Edit History

Rolling log of changes to this entity's Wikidata record. Values shown reflect the current state of each edited property — follow the history link to see the precise diff for any edit.

  1. 10w ago · VGMaintenanceBot bot · 2026-09-08 view diff on Wikidata ↗
    Uses → array data structure
    Instance of → stable sorting algorithm
    Named after → garden gnome
    "Added qualifier: MediaWiki page ID: 1995, Add qualifier to Rosetta Code page ID `Sorting_algorithms/Gnome_sort`"
Live feed via Wikidata EventStreams. New edits appear within minutes of being made on Wikidata.