Sorting algorithm extension for blocks

@richard asked for it on stream, so here it is!
A quick sort algorithm fitted for blocks - the method is available in both ascending and descending order.
The blocks (really only one):


Have fun with it or whatever, peace!

8 Likes

Lol you beat me to it…

This is cool good job!

1 Like

Wait this EXIST YEHEY FINALLY IVE BEEN WAITING FOR THIS

Can you explain why this code doesn’t work?

B to organise array and display it.
I think the extension breaks when trying to sort an array that’s already sorted

1 Like

Fixed! Thanks for pointing this out, I did make a mistake here. Because I was directly referencing the array parameter, when I used array.pop() in the sort method, it removed an element from the original array.

2 Likes

Uhh @sarge it’s still broken…

Still the same issue?

1 Like

Yeah if you look at the example I gave, the issue still persists, even after re-downloading the extension

Should be fine now. Turns out I fixed the issue, but I didn’t make a release so you couldn’t pull it :sweat_smile:

2 Likes

Thanks!

1 Like