Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
m
→{{header|Icon}}: typo fix
m (→{{header|Icon and Unicon}}: Don't use header like this) |
m (→{{header|Icon}}: typo fix) |
||
Line 657:
==={{header|Icon}}===
While bubble sort is a basic algorithm it also illustrates a difference in the way Icon handles types. Built-in
operators for comparing data types make a syntactic distinction between numeric and string types, and sorting
Line 707 ⟶ 706:
procedure cmp(a,b)
return a > b # Imagine a complex
end
|