Smallest First
by Anonymous Β· β 1 Β· π΄ 0
π There's a smart way to line things up! In Swap by Hand, swap bars only with their neighbors to sort from smallest to largest β match the minimum moves to earn a β¨. π€ In Like a Computer, watch how a machine sorts step-by-step. Compare mixed and sorted lines to see that swap counts change, but comparison counts stay the same β computers can't see ahead without checking! π― In Set Rules, pick your sorting style. Without rules, 100 might strangely end up before 9 β build your own to see why! Made with code Β· Remix it to create your own line!
Ready to remix β hit the π΄ Remix button below. You'll sign up first, then this app is copied into your workspace.
About this app
Smallest First is an interactive educational app designed to teach basic sorting algorithms and computer science concepts. Users can manually swap adjacent bars to understand minimum swap logic, step through automated computer comparisons, and explore JavaScript sorting rules and comparator functions.
Use cases
- Students learning fundamental computer science and sorting algorithms
- Teachers looking for visual tools to explain bubble sort and comparison rules
- Beginners learning how JavaScript array sorting works under the hood
Features
- Interactive manual swap mode to solve ordering puzzles with minimum moves
- Step-by-step visualizer for computer comparisons and swaps
- Rule customization tab demonstrating comparator functions like numeric vs text sorting
- Audio sound effects and progress tracking across guided missions