Minecraft Quicksort Algorithm

Is there any way to optimize it further? I know for sure that using this much @e will cause some sort of lag, but I dont think my silly little brain will be able to make it work better. Any more fabulous brainiac that can fix my suffering? <:husk:1221078528448270346>
Continue to help post