Before triage sorted patients, it sorted wool.
The word is French, a noun formed from the verb trier, "to sort" or "to pick out." It existed in Middle French by the 14th century. Randle Cotgrave's French-English dictionary of 1611 defined it as "Choice, a culling, or picking out from among others."
Its first known English appearance is commercial. Ephraim Chambers's Cyclopaedia of 1728, in its entry on wool, explains that if "the Triage or Separation be well made," most bales will be marked as prime. By 1747 English writers used triage as a verb for sorting fleeces. From wool, the word spread to other goods. One military-medical history says that by the 1820s it was used for sorting coffee beans.
The practice of sorting the wounded is older than the medical word. The Napoleonic army surgeon Dominique-Jean Larrey wrote that surgeons must "always begin with the most dangerously injured, without regard to rank or distinction." He taught and practiced a form of casualty selection, though the word itself only reached medicine a century later. In the Crimean War, the Russian surgeon Nikolai Pirogov is credited with the first formally graded battlefield system.
The medical word arrived with the First World War. The etymologist Dave Wilton thinks it was probably borrowed from French a second time, rather than stretched from the wool trade. His earliest example is a diary entry by Tracy Putnam dated 27 December 1915: "The triage has been transferred from Moosch to Willer." In congressional testimony in January 1919, a witness described a man in charge of a triage who "triaged 5,000." Merriam-Webster dates its own first medical citation to 1918.
Many people assume triage means sorting into three groups, because of the "tri" at the start. It does not. Wilton calls this a false etymology: triage is unrelated to tri- or to three. The word is simply about sorting, however many piles there are.
The meaning has since widened. Merriam-Webster includes the sorting of emergency-room patients by urgency, and the ranking of projects by where money and other resources will do the most good.