I managed to code a bubble sort algorithm on the ZX Spectrum Next (running at 28Mhz) which has turned out to be quite a fun exercise (I've spent way too much time playing with it).
It generates an array of 20 random numbers from -50 to 49 (this could be any range of numbers) and then sorts them in ascending order. I guess my next challenge would be to sort them in descending order. It takes longer to sort them as I am printing the results each time a change is made and it takes about 3 to 5 seconds to sort the numbers without.
I'm planning to use this in the future as I have at least one idea for it, but it could be mostly used for high score tables. Feel free to use the code.