encyclopegia.org

Internal sort

An internal sort is any data sorting process that takes place entirely within the main memory of a computer. This is possible whenever the data to be sorted is small enough to be completely held in the main memory. The opposite of an internal sort is an external sort, where the data is partially or completely held on external media such as a hard disk. Any reading or writing of data to and from this slower media can slow the sort process considerably. This issue has implications for different sort algorithms. Some common internal sorting algorithms include: # Bubble Sort # Insertion Sort # Quick Sort # Heap Sort # Radix Sort # Selection sort Consider a Bubblesort, where adjacent records are swapped in order to get them into the right order, so that records appear to “bubble” up and down through the dataspace. If this has to be done in chunks, then when we have sorted all the records in chunk 1, we move on to chunk 2, but we find that some of the records in chunk 1 need to “bubble through” chunk 2, and vice versa (i.e., there are records in chunk 2 that belong in chunk 1, and records in chunk 1 that belong in chunk 2 or later chunks). This will cause the chunks to be read and written back to disk many times as records cross over the boundaries between them, resulting in a considerable degradation of performance.…

An internal sort is any data sorting process that takes place entirely within the main memory of a computer. This is possible whenever the data to be sorted is small enough to be completely held in the main memory. The opposite of an internal sort is an external sort, where the data is partially or completely held on external media such as a hard disk. Any reading or writing of data to and from this slower media can slow the sort process considerably. This issue has implications for different sort algorithms. Some common internal sorting algorithms include: Bubble Sort Insertion Sort Quick Sort Heap Sort Radix Sort Selection sort Consider a Bubblesort, where adjacent records are swapped in order to get them into the right order, so that records appear to “bubble” up and down through the dataspace. If this has to be done in chunks, then when we have sorted all the records in chunk 1, we move on to chunk 2, but we find that some of the records in chunk 1 need to “bubble through” chunk 2, and vice versa (i.e., there are records in chunk 2 that belong in chunk 1, and records in chunk 1 that belong in chunk 2 or later chunks). This will cause the chunks to be read and written back to disk many times as records cross over the boundaries between them, resulting in a considerable degradation of performance. If the data can all be held in memory as one large chunk, then this performance hit is avoided. On the other hand, some algorithms handle external sorting rather better. A Merge sort breaks the data up into chunks, sorts the chunks by some other algorithm, such as bubblesort or Quick Sort, and then recombines the chunks two by two so that each recombined chunk is in order. This approach minimizes the number or reads and writes of data-chunks from disk, and is a popular external sort method. ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Internal sort." encyclopegia.org, 2026, https://encyclopegia.org/wiki/internal-sort. Accessed 24 November 2026.

Chicago

"Internal sort." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/internal-sort.

APA

encyclopegia.org. (2026). Internal sort. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/internal-sort

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Dufferin Grove

enwiki · references available

Dirtbag Clothing

enwiki · references available

Ramchandra Shukla

enwiki · references available

Zymne Monastery

enwiki · references available

Alar Kotli

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1371603801 · 0.5 · snapshot enwiki-001371603801

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.