What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Sort vs Array - What's the difference?

sort | array |

As nouns the difference between sort and array

is that sort is a general type while array is clothing and ornamentation.

As verbs the difference between sort and array

is that sort is (separate according to certain criteria) To separate according to certain criteria while array is to clothe and ornament; to adorn or attire.

sort

English

Etymology 1

From (etyl) (m), (m), (m) (= Dutch (m), German (m), Danish (m), Swedish (m)), from (etyl) .

Noun

(en noun)
  • A general type.
  • *, chapter=1
  • , title= Mr. Pratt's Patients, chapter=1 , passage=I stumbled along through the young pines and huckleberry bushes. Pretty soon I struck into a sort of path that, I cal'lated, might lead to the road I was hunting for. It twisted and turned, and, the first thing I knew, made a sudden bend around a bunch of bayberry scrub and opened out into a big clear space like a lawn.}}
  • *{{quote-book, year=1922, author=(Ben Travers), title=(A Cuckoo in the Nest)
  • , chapter=1 citation , passage=“[…] the awfully hearty sort of Christmas cards that people do send to other people that they don't know at all well. You know. The kind that have mottoes like
      Here's rattling good luck and roaring good cheer, / With lashings of food and great hogsheads of beer.
  • *{{quote-book, year=1963, author=(Margery Allingham), title=(The China Governess)
  • , chapter=17 citation , passage=The face which emerged was not reassuring.
  • *{{quote-magazine, date=2013-06-14, author= Sam Leith
  • , volume=189, issue=1, page=37, magazine=(The Guardian Weekly) , title= Where the profound meets the profane , passage=Swearing doesn't just mean what we now understand by "dirty words". It is entwined, in social and linguistic history, with the other sort of swearing: vows and oaths.}}
  • Manner; form of being or acting.
  • *(Edmund Spenser) (c.1552–1599)
  • *:Which for my part I covet to perform, / In sort as through the world I did proclaim.
  • *(Richard Hooker) (1554-1600)
  • *:Flowers, in such sort worn, can neither be smelt nor seen well by those that wear them.
  • *(William Shakespeare) (c.1564–1616)
  • *:I'll deceive you in another sort .
  • *(John Milton) (1608-1674)
  • *:To Adam in what sort / Shall I appear?
  • *(John Dryden) (1631-1700)
  • *:I shall not be wholly without praise, if in some sort I have copied his style.
  • *
  • *:Carried somehow, somewhither, for some reason, on these surging floods, were these travelers, of errand not wholly obvious to their fellows, yet of such sort as to call into query alike the nature of their errand and their own relations. It is easily earned repetition to state that Josephine St. Auban's was a presence not to be concealed.
  • (lb) Condition above the vulgar; rank.
  • :(Shakespeare)
  • (lb) Group, company.
  • *(Edmund Spenser) (c.1552–1599)
  • *:a sort of shepherds
  • *(John Dryden) (1631-1700)
  • *:a sort of doves
  • *(Philip Massinger) (1583-1640)
  • *:a sort of rogues
  • *(George Chapman) (1559-1634)
  • *:A boy, a child, and we a sort of us, / Vowed against his voyage.
  • (lb) A person.
  • :
  • An act of sorting.
  • :
  • (lb) An algorithm for sorting a list of items into a particular sequence.
  • :
  • (lb) A piece of metal type used to print one letter, character, or symbol in a particular size and style.
  • (lb) Chance; lot; destiny.
  • *(William Shakespeare)
  • *:Let blockish Ajax draw / The sort to fight with Hector.
  • (lb) A pair; a set; a suit.
  • :(Johnson)
  • Synonyms
    * (type) genre, genus, kind, type, variety * (person) character, individual, person, type * (act of sorting) sort-out * (in computing) sort algorithm, sorting algorithm * (typography) glyph, type * See also
    Derived terms
    * all sorts * allsorts * in sort * out of sorts * sort of * sort out * sorta * bead sort * binary tree sort * blort sort * bogo-sort * bozo sort * bubble sort * bucket sort * cocktail sort * comb sort * counting sort * distribution sort * drunk man sort * gnome sort * heapsort * insertion sort * in-place sort * insertion sort * introsort * introspective sort * library sort * merge sort * mergesort * monkey sort * pigeonhole sort * quicksort * radix sort * selection sort * shell sort * smoothsort * stochastic sort * stupid sort * stooge sort * timsort

    Etymology 2

    From (etyl)

    Verb

    (en verb)
  • (senseid)To separate according to certain criteria.
  • * Isaac Newton
  • Rays which differ in refrangibility may be parted and sorted from one another.
  • (senseid)To arrange into some order, especially numerically, alphabetically or chronologically.
  • (senseid)(British) To fix a problem, to handle a task; to sort out.
  • To conjoin; to put together in distribution; to class.
  • * Francis Bacon
  • Shellfish have been, by some of the ancients, compared and sorted with insects.
  • * Sir J. Davies
  • She sorts things present with things past.
  • To join or associate with others, especially with others of the same kind or species; to agree.
  • * Woodward
  • Nor do metals only sort and herd with metals in the earth, and minerals with minerals.
  • * Francis Bacon
  • The illiberality of parents towards children makes them base, and sort with any company.
  • To suit; to fit; to be in accord; to harmonize.
  • * Francis Bacon
  • They are happy whose natures sort with their vocations.
  • * Sir Walter Scott
  • I cannot tell ye precisely how they sorted .
  • (obsolete) To conform; to adapt; to accommodate.
  • * Shakespeare
  • I pray thee, sort thy heart to patience.
  • (obsolete) To choose from a number; to select; to cull.
  • * Chapman
  • that he may sort out a worthy spouse
  • * Shakespeare
  • I'll sort some other time to visit you.
    Usage notes
    In British sense “to fix a problem”, often used in the form “I’ll get you sorted,” or “Now that’s sorted,” – in American usage (sort out) is used instead.
    Synonyms
    * (separate according to certain criteria) categorise/categorize, class, classify, group * (arrange into some sort of order) order, rank
    Derived terms
    * sorted * sorting * sort out

    Statistics

    *

    Anagrams

    * ----

    array

    English

    Noun

    (en noun)
  • Clothing and ornamentation.
  • (Dryden)
  • A collection laid out to be viewed in full.
  • An orderly series, arrangement or sequence.
  • * Prescott
  • a gallant array of nobles and cavaliers
  • Order; a regular and imposing arrangement; disposition in regular lines; hence, order of battle.
  • drawn up in battle array
  • * Gibbon
  • wedged together in the closest array
  • A large collection.
  • * Byron
  • their long array of sapphire and of gold
    We offer a dazzling array of choices.
  • * {{quote-news, year=2011
  • , date=October 23 , author=Phil McNulty , title=Man Utd 1 - 6 Man City , work=BBC Sport citation , page= , passage=Mario Balotelli, in the headlines for accidentally setting his house ablaze with fireworks, put City on their way with goals either side of the interval as United struggled to contain the array of attacking talent in front of them.}}
  • (programming) Any of various data structures designed to hold multiple elements of the same type; especially , a data structure that holds these elements in adjacent memory locations so that they may be retrieved using numeric indices.
  • (legal) A ranking or setting forth in order, by the proper officer, of a jury as impanelled in a cause; the panel itself; or the whole body of jurors summoned to attend the court.
  • (military) A militia.
  • Usage notes

    * (any of various data structures) The exact usage of the term , and of related terms, generally depends on the programming language. For example, many languages distinguish a fairly low-level "array" construct from a higher-level "list" or "vector" construct. Some languages distinguish between an "array" and a variety of "associative array"; others have only the latter concept, calling it an "array".

    Derived terms

    * * * * *

    Antonyms

    * (orderly series) disarray

    See also

    * (any of various data structures) ones-based indexing, zero-based indexing

    Verb

  • To clothe and ornament; to adorn or attire
  • He was arrayed in his finest robes and jewels.
  • To lay out in an orderly arrangement; to deploy or marshal
  • (legal) To set in order, as a jury, for the trial of a cause; that is, to call them one at a time.
  • (Blackstone)