Sort Symphony: A SwiftUI Rebuild of "The Sound of Sorting"
Hey HN,
This is a full open-source rewrite of The Sound of Sorting — the classic algorithm visualizer — built entirely in Swift with SwiftUI for macOS and iPadOS.
Originally intended as a straight port, it quickly became a much deeper project: a ground-up redesign focused on code quality, educational value, and cross-platform Apple support.
Highlights:
Real-time visual and audible sorting animations
Detailed explanations of each algorithm
Time & space complexity breakdowns
Code implementations in 10 different languages (and growing)
A fully custom syntax highlighter written in Swift
Modular architecture for adding new algorithms or languages easily
This has been my longest-running personal project — I started it in late 2021 as my first Swift app, and it’s now become a platform for exploring everything from AVFoundation to SwiftUI best practices.
Why I’m sharing: I’d love feedback, ideas, and especially contributions. There’s plenty of room for improvements: better performance, more algorithms, expanded language support, accessibility enhancements — you name it. Even reviewing the Swift code and helping improve the idiomatic use of the language would be hugely appreciated.
If you’re into open-source, visual learning tools, Swift, or just love making things better — I’d be thrilled to collaborate.
The code is available here: https://github.com/nhubbard/sort-visualizer-swift
And the app is available for download from the Mac and iPadOS App Store here: https://apps.apple.com/us/app/sort-symphony/id6477886990
Thanks!