Skip to content

Commit c4387f0

Browse files
eksperimentaljosevalim
authored andcommitted
Correct types in sorting order (elixir-lang#848)
1 parent ec4b2fb commit c4387f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/basic-operators.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ true
107107

108108
The reason we can compare different data types is pragmatism. Sorting algorithms don't need to worry about different data types in order to sort. The overall sorting order is defined below:
109109

110-
number < atom < reference < functions < port < pid < tuple < maps < list < bitstring
110+
number < atom < reference < function < port < pid < tuple < map < list < bitstring
111111

112112
You don't actually need to memorize this ordering, but it is important just to know an order exists.
113113

0 commit comments

Comments
 (0)