From 93c3fa4631a4201aa9d38c676c7406c2790d035f Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Thu, 22 Sep 2016 04:40:55 +0700 Subject: [PATCH 1/2] correct type in sorting order based on https://github.com/elixir-lang/elixir/pull/5238/files#diff-50948d471af46f8f79bf8d175641fa42R67 by @fboyer --- getting-started/basic-operators.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/basic-operators.markdown b/getting-started/basic-operators.markdown index 09ca99abb..b30492205 100644 --- a/getting-started/basic-operators.markdown +++ b/getting-started/basic-operators.markdown @@ -107,7 +107,7 @@ true 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: - number < atom < reference < functions < port < pid < tuple < maps < list < bitstring + number < atom < reference < functions < port < pid < tuple < map < list < bitstring You don't actually need to memorize this ordering, but it is important just to know an order exists. From 2ff2a14ff118d86b7571ef7b1745b77726ce05ce Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Thu, 22 Sep 2016 04:41:45 +0700 Subject: [PATCH 2/2] Update basic-operators.markdown --- getting-started/basic-operators.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/basic-operators.markdown b/getting-started/basic-operators.markdown index b30492205..c297f9c28 100644 --- a/getting-started/basic-operators.markdown +++ b/getting-started/basic-operators.markdown @@ -107,7 +107,7 @@ true 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: - number < atom < reference < functions < port < pid < tuple < map < list < bitstring + number < atom < reference < function < port < pid < tuple < map < list < bitstring You don't actually need to memorize this ordering, but it is important just to know an order exists.