# Problem with arrays

**URL:** https://forum.makecode.com/t/problem-with-arrays/23832
**Category:** Help
**Created:** [November 1, 2023, 7:44pm UTC](https://forum.makecode.com/t/problem-with-arrays/23832 "2023-11-01T19:44:58Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)
#### Post date: [November 2, 2023, 4:12pm UTC](https://forum.makecode.com/t/problem-with-arrays/23832/4 "2023-11-02T16:12:01Z")

</div>

Since I am too old for crosswords and sudoku, but find challenges like this interesting, here’s my bid:

> **[add'n'shuffle](https://arcade.makecode.com/41062-68886-28781-52341)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Probably not very efficient, waiting for the elders to optimize further… 😉

PS: Added sort() just because this is the only such array operation I have found already there in MCA. Sort() modifies the original array, my functions copy. To make ShuffleList() modify the original array instead, remove the tempList entirely and replace it were used with the inputList parameter.  
PS2: How to get the native sort() to sort numbers above 9 correctly(9, 10, 11,…)?  
PS3: Some more related information:  
[https://forum.makecode.com/t/anyone-know-how-to-join-two-arrays-together/17660/14](https://forum.makecode.com/t/anyone-know-how-to-join-two-arrays-together/17660/14)  
[https://forum.makecode.com/t/sorting-algorithm-extension-for-blocks/16260](https://forum.makecode.com/t/sorting-algorithm-extension-for-blocks/16260)

---

_[View the full topic](https://forum.makecode.com/t/problem-with-arrays/23832)._
