This is a sorting algorithm, it orders numbers from smallest to largest. This algorithm counts the numbers, like: "Oh, there are 2 twos and 3 fours, so i will first add 2 twos and then 3 fours."