How to Sort Numbers from Smallest to Largest
Cómo ordenar los números de menor a mayor
Let's learn with an example.
Aprendamos con un ejemplo.
9, 18, 13, 169, 18, 13, 16
How do you sort these numbers from
smallest to largest? 🤔
¿Cómo se ordenan estos números de menor a mayor?
1️⃣ First, scan the list to find the smallest number.
En primer lugar, escanea la lista para encontrar el número más pequeño.
9 is the
smallest number of all
.El 9 es el número más pequeño de todos.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27559%27%20height=%27154%27/%3e)
The remaining numbers to sort are:
Los números que quedan por ordenar son:
18, 13, 1618, 13, 16
What's the next smallest?
¿Cuál es el siguiente más pequeño?
Great job! 👏 It's
13.¡Gran trabajo! Son 13.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27154%27/%3e)
Let's keep going! 🤗
¡Sigamos adelante!
Which is the next smallest of the remaining numbers?
¿Cuál es el siguiente número más pequeño de los restantes?
18, 1618, 16
That's right! 😎 The next smallest is
16. ¡Así es! El siguiente más pequeño es el 16.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27154%27/%3e)
The last (biggest) number will be 18.
El último número mayor será el 18.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27155%27/%3e)
So, the numbers in the set,
sorted from
smallest to largest are:
Así, los números del conjunto, ordenados de menor a mayor son:
9, 13, 16, 189, 13, 16, 18
There you go! You just
sorted the numbers
from smallest to largest! 🤗
¡Ahí lo tienes! ¡Acabas de ordenar los números de menor a mayor!
Tip: You just learned a
sorting algorithm, called "
bubble sort"! 🤯😺
Consejo: ¡Acabas de aprender un algoritmo de ordenación llamado "bubble sort"!
An
algorithm is a
set of steps to complete some task or to make something.
Un algoritmo es un conjunto de pasos para completar alguna tarea o para hacer algo.
Mega Tip: You just learned some
computer science!
Mega Tip: ¡Acabas de aprender algo de informática!
Computer science is the study of
algorithms and computer programs.🤘
La informática es el estudio de los algoritmos y los programas informáticos.
We love computer science and hope you will too! 🥰
Nos encanta la informática y esperamos que a ti también te guste 🥰.
Sorting from Largest to Smallest
Ordenar de mayor a menor
Sorting from
smallest to largest is called sorting in
ascending order.
La ordenación de menor a mayor se denomina ordenación ascendente.
Now, let's do the opposite.
Ahora, hagamos lo contrario.
Sorting from
largest to smallest is called
descending order.
La ordenación de mayor a menor se denomina orden descendente.
Let's sort these numbers from
largest to smallest. 👇Ordenemos estos números de mayor a menor.
12, 4, 7, 1912, 4, 7, 19
1️⃣ First, find the
biggest number of all.
Primero, encuentra el número más grande de todos.
Very good! 😃 The
biggest number is
19.¡Muy bien! El número más grande es el 19.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27154%27/%3e)
2️⃣ Next, look through the remaining unsorted numbers for the next largest.
A continuación, busque entre los números restantes sin clasificar el siguiente más grande.
12, 4, 712, 4, 7
That's right! 👏 The next largest is
12.¡Así es! El siguiente más grande es el 12.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27154%27/%3e)
3️⃣ Since we have more numbers to sort, let's repeat step 2! 😎
Como tenemos más números que ordenar, ¡repitamos el paso 2!
What's the next largest number?
¿Cuál es el siguiente número más grande?
4, 74, 7
Great job! The next largest is
7.¡Gran trabajo! El siguiente más grande es el 7.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27154%27/%3e)
The smallest number is
4.
El número más pequeño es el 4.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27550%27%20height=%27155%27/%3e)
Yes! You just sorted these numbers from
largest to smallest:
¡Sí! Acabas de ordenar estos números de mayor a menor:
19, 12, 7, 419, 12, 7, 4
Nice job! 👏
¡Buen trabajo!
Now, practice sorting some numbers to make sure you got it. 👇 It's fun, and it's an important skill.
Ahora, practica la clasificación de algunos números para asegurarte de que lo has conseguido. Es divertido y es una habilidad importante.
![](data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27540%27%20height=%27623%27/%3e)
You're ready!
¡Estás listo!