Knowledge (XXG)

Sorting

Source 📝

198: 290: 31: 336:. Sorting results from the application of some criterion or differential stressors to a mass to separate it into its components based on some variable quality. Materials that are different, but only slightly so, such as the isotopes of uranium, are very difficult to separate. 265:: Partition the array into two segments. In the first segment, all elements are less than or equal to the pivot value. In the second segment, all elements are greater than or equal to the pivot value. Finally, sort the two segments recursively. 150:
consisting of fields) can be done based on one or more of its components. More generally objects can be sorted based on a property. Such a component or property is called a
197: 257:: Find the smallest (or biggest) element in the array, and put it in the proper place. Swap it with the value in the first position. Repeat until array is sorted. 328:
gold from lighter materials in the ore (sorting by size and weight). Sorting is also a naturally occurring process that results in the concentration of
424: 443: 378: 131:, "should come before" (specifying one defines also the other, the two are the complement of the inverse of each other, see 342:
is an automated process of sorting solid products using cameras and/or lasers and has widespread use in the food industry.
87:, arranging in an ordered sequence is called "sorting". Sorting is a common operation in many applications, and efficient 66:
Ordering items is the combination of categorizing them based on equivalent order, and ordering the categories themselves.
49:
refers to ordering data in an increasing or decreasing manner according to some linear relationship among the data items.
465: 383: 359: 209:(corresponding to the fact that the standard order of numbers is ascending, i.e. A to Z, 0 to 9), the reverse order 414: 179:
For example, addresses could be sorted using the city as primary sort key, and the street as secondary sort key.
470: 157:
For example, the items are books, the sort key is the title, subject or author, and the order is alphabetical.
165: 20: 355: 343: 187: 120:
The opposite of sorting, rearranging a sequence of items in a random or meaningless order, is called
294: 194:. If different items have different sort key values then this defines a unique order of the items. 333: 325: 305: 147: 24: 363: 420: 289: 273:: Divide the list of elements in two parts, sort the two parts individually and then merge it. 249:: Scan successive elements for an out-of-order item, then insert the item in the proper place. 226: 191: 128: 88: 393: 283: 190:
of the items: items with the same sort key are equivalent with respect to sorting. See also
99: 82: 373: 339: 132: 113: 106: 53: 241:: Exchange two adjacent elements if they are out of order. Repeat until array is sorted. 217:
means that earlier values precede later ones e.g. 1/1/2000 will sort ahead of 1/1/2001.
253: 245: 59: 459: 313: 38:
required all of the type after use to be sorted back into the correct slots in the
127:
For sorting, either a weak order, "should not come after", can be specified, or a
30: 321: 298: 233: 183: 136: 35: 449: 269: 261: 237: 368: 161: 121: 39: 388: 317: 143: 452:
explaining bubble sort and quick sort and compares their performance.
304:
Various sorting tasks are essential in industrial processes, such as
288: 196: 29: 309: 282:"Shaker table" redirects here. For tables made by Shakers, see 135:). For the sorting to be unique, these two are restricted to a 329: 358:
in Knowledge (XXG) tables. For sorting of categories, see
56:: arranging items in a sequence ordered by some criterion; 19:
This article is about data sorting. For other uses, see
416:Recent Advances in Mineral Processing Plant Design 94:The most common uses of sorted sequences are: 164:can be created from two or more sort keys by 8: 201:Workers sorting parcels in a postal facility 362:and for sorting of article sections, see 62:: grouping items with similar properties. 360:Knowledge (XXG):Categorization#Sort keys 308:. For example, during the extraction of 213:(Z to A, 9 to 0). For dates and times, 139:and a strict total order, respectively. 405: 146:(depending on context also called e.g. 16:Action of arranging objects into order 7: 444:Demonstration of Sorting Algorithms 91:have been developed to perform it. 14: 205:A standard order is often called 446:(includes bubble and quicksort) 346:is used in mineral processing. 168:. The first is then called the 133:operations on binary relations 1: 312:from ore, a device called a 384:Unicode collation algorithm 182:If the sort key values are 489: 281: 224: 18: 186:, the sort key defines a 413:Deepak Malhotra (2009). 379:IBM mainframe sort/merge 301: 202: 43: 292: 200: 166:lexicographical order 33: 21:Sort (disambiguation) 344:Sensor-based sorting 107:merging of sequences 297:, used for sorting 295:classification yard 116:in a defined order. 75:Information or data 466:Sorting algorithms 306:mineral processing 302: 203: 174:secondary sort key 114:processing of data 44: 25:Sorting (sediment) 426:978-0-87335-316-8 227:Sorting algorithm 221:Common algorithms 172:, the second the 129:strict weak order 478: 431: 430: 410: 394:5S (methodology) 284:Shaker furniture 170:primary sort key 100:lookup or search 86: 85: 83:computer science 488: 487: 481: 480: 479: 477: 476: 475: 471:Data processing 456: 455: 440: 435: 434: 427: 412: 411: 407: 402: 374:Data processing 352: 340:Optical sorting 287: 280: 229: 223: 184:totally ordered 81: 80: 77: 72: 28: 17: 12: 11: 5: 486: 485: 482: 474: 473: 468: 458: 457: 454: 453: 450:Animated video 447: 439: 438:External links 436: 433: 432: 425: 404: 403: 401: 398: 397: 396: 391: 386: 381: 376: 371: 366: 351: 348: 324:, and flow to 279: 276: 275: 274: 266: 258: 254:Selection sort 250: 246:Insertion sort 242: 225:Main article: 222: 219: 192:stable sorting 118: 117: 110: 103: 76: 73: 71: 68: 64: 63: 57: 15: 13: 10: 9: 6: 4: 3: 2: 484: 483: 472: 469: 467: 464: 463: 461: 451: 448: 445: 442: 441: 437: 428: 422: 418: 417: 409: 406: 399: 395: 392: 390: 387: 385: 382: 380: 377: 375: 372: 370: 367: 365: 361: 357: 354: 353: 349: 347: 345: 341: 337: 335: 331: 327: 323: 319: 315: 311: 307: 300: 296: 291: 285: 277: 272: 271: 267: 264: 263: 259: 256: 255: 251: 248: 247: 243: 240: 239: 235: 231: 230: 228: 220: 218: 216: 212: 208: 199: 195: 193: 189: 185: 180: 177: 175: 171: 167: 163: 158: 155: 153: 149: 145: 140: 138: 134: 130: 125: 123: 115: 111: 108: 104: 101: 97: 96: 95: 92: 90: 84: 74: 69: 67: 61: 58: 55: 52: 51: 50: 48: 41: 37: 32: 26: 22: 415: 408: 356:Help:Sorting 338: 314:shaker table 303: 299:freight cars 268: 260: 252: 244: 232: 214: 210: 206: 204: 181: 178: 173: 169: 159: 156: 151: 141: 126: 119: 93: 78: 65: 60:categorizing 46: 45: 293:A railroad 137:total order 36:typesetting 460:Categories 400:References 270:Merge sort 262:Quick sort 238:Shell sort 211:descending 188:weak order 109:efficient; 102:efficient; 89:algorithms 369:Collation 322:vibration 215:ascending 207:ascending 122:shuffling 112:enabling 40:type case 389:Knolling 364:WP:ORDER 350:See also 334:sediment 326:separate 278:Physical 162:sort key 152:sort key 144:n-tuples 142:Sorting 54:ordering 419:. SME. 318:gravity 176:, etc. 148:records 105:making 98:making 70:By type 47:Sorting 34:Manual 423:  234:Bubble 160:A new 316:uses 421:ISBN 310:gold 23:and 332:or 330:ore 79:In 462:: 320:, 154:. 124:. 429:. 286:. 236:/ 42:. 27:.

Index

Sort (disambiguation)
Sorting (sediment)

typesetting
type case
ordering
categorizing
computer science
algorithms
lookup or search
merging of sequences
processing of data
shuffling
strict weak order
operations on binary relations
total order
n-tuples
records
sort key
lexicographical order
totally ordered
weak order
stable sorting

Sorting algorithm
Bubble
Shell sort
Insertion sort
Selection sort
Quick sort

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.