ScratchData LogoScratchData
Back to fries09's profile

Simple Sorting Algorithm

FRfries09•Created March 14, 2023
Simple Sorting Algorithm
0
0
1 views
View on Scratch

Instructions

24 blocks! (For the sorting method. Not setup, the forever loop, custom blocks, or visualization.) I strongly recommend turbo mode. The visualization sprite slowed the sorting way down. Try deleting the visualization sprite, and running it again. Way faster.

Description

Not very fast, but the sorting script was made in 2 minutes, and I will share a better one today, hopefully. How it works is it compares a value with the next one in the list. If the first value is greater than the second, they get swapped, so the first one is now toward the right.

Project Details

Project ID819375900
CreatedMarch 14, 2023
Last ModifiedOctober 28, 2024
SharedMarch 14, 2023
Visibilityvisible
CommentsAllowed