[Home]Collation

HomePage | Recent Changes | Preferences

In computer science and library and information science, collation is the assembly of written information into a standard order. In common useage, this is called alphabetisation, though collation is not limited to ordering letters of the alphabet. Collating lists of words or names into alphabetical order is the basis of most office filing systems, library catalogues, and books of reference. Collation differs from classification in that classification is concerned with arranging information into logical categories, while collation is concerned with the ordering of those categories.

The simplest collation system is numerical sorting: ordering numbers by their magnitude. For example, 4 7 3 5 colates to 3 4 5 7. While this might appear to work only for numbers, computers can use this method for any information since everything is a number to a computer. For example, a computer using ASCII code and numerical sorting would collate a b C d $ to $ C a b d. Why the curious order? The numerical values that ASCII uses are $ = 36, a = 97, b = 98, C = 67, and d = 100. This style of collation is commonly used, often with the refinement of converting uppercase letters to lowercase before comparing ASCII values, since most people do not expect capitalised words to jump the head of the list. This system fails to properly sort numbers written as text because a human-readable number stored in a computer text string is a sequence of numeric codes for numerals?, i.e., 156.1 (a string) is represented by ASCII code as the five ordered numbers 49, 53, 54, 46, and 49.

A more elaborate collation system is alphabetical sorting, which orders words or names based on the order of letters in the alphabet. Each nth letter is compared with the nth letter of other words in the list, starting at the first letter of each word and advancing to the second, third, fourth, etc until the order is established. For example, foo bar bibble collates to bar bibble foo because (1) f comes after b so bar and bibble both precede foo and (2) a comes before i so bar precedes bibble.

Numeric sorting on a computer and alphabetical sorting often produce the same ordering for English. The difference between computer-style numerical sorting and true alphabetical sorting becomes obvious in languages with alphabets larger than twenty-six letters. For example, the thirty-letter alphabet of Spanish treats ñ as basic letter following n and ch, ll, and rr as basic letters following c, l, and r, respectively. A numeric sort would order ñ incorrectly following z and treat ch as c + h, also incorrect. Similar differences between computer numeric sorting and alphabetic sorting occur in Danish (aa is ordered as å at the end of the alphabet), German (ß is ordered as s + s), Icelandic (ð follows d), English (æ is ordered as a + e), and many other languages. Usually the spaces or hyphens between words are ignored.

Languages that used a syllabary instead of an alphabet (for example, Cherokee?) can use approximately the same system if there is a set ordering for the symbols.

A last form of collation is radical-and-stroke sorting, used for non-alphabetic writing systems such as Chinese logographs and Japanese kanji. In this system, common components of characters (radicals) are identified. Character are then grouped by their primary radical, then order by number of pen strokes within radicals. When there is no obvious radical or more than one radical, convention governs which is used for collation. This system is cumbersome compared to a alphabetical system in which there are a few characters, all unambiguous. As a result, logographic languages often supplement radical-and-stroke ordering with alphabetic sorting of a phonetic conversion of the logographs.


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions
Last edited December 16, 2001 4:53 pm by Hajhouse (diff)
Search: