PLEASE USE TURBOWARP FOR MAXIMUM EFFICIENCY https://turbowarp.org/950544471?fps=60 ------------------------------------------------------------- So this goes off like if it was in a 3D world. You set the render Distance and it generates random numbers. (Press Space to Generate the Numbers). Then, press enter and the list will sort. ------------------------------------------------------- Speed Test: (TurboWarp - 10000 numbers) Rex Quicksort - 0.018 My Sort - 0.006 ----------------------------------------------------------- How it Works Its actually a really simple concept. It has 3 lists only: (List to sort) (Sorted List) (List Sorted) The outcome comes out of (List Sorted), the (Sorted List) is just for sorting purposes. (List to Sort) is the randomly generated Numbers to be sorted. So how it works. It goes through (List to Sort) and it replaces each item of (List to Sort) in (Sorted List) with: [Item i of (Sorted List) join item i of (List to Sort) Might sound confusing but if you look inside youll understand easily ------------------------------------------------------------ LIMITATIONS So the main limitation is that the numbers generated can only be between 0 to the length of the list. The other limitation: it does not support negatives.
All by me (I thought of the technique sleeping lol) This is designed for 3d Engines (Distance to Camera) Soon Ill probably Add a piece of code that also tells you which number in the list that the sorted item originally was, but it wouldnt be hard to make if you really need it