Sort three variables: Difference between revisions

Content added Content deleted
m (Formatting.)
Line 1,803: Line 1,803:
77444</pre>
77444</pre>
=={{header|Nim}}==
=={{header|Nim}}==
<lang nim>
<lang nim>proc sortThree[T](a, b, c: var T) =
proc sortThree[T](a, b, c: var T) =
# Bubble sort, why not?
# Bubble sort, why not?
while not (a <= b and b <= c):
while not (a <= b and b <= c):