Sortify is an interactive, GUI-based tool that visually demonstrates the step-by-step process of popular sorting algorithms. Built using Python and Tkinter, it is designed for students, educators, and developers to understand sorting logic through dynamic visual feedback.
- Graphical User Interface using Tkinter
- Visual representation of sorting algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Adjustable sorting speeds: Fast, Medium, Slow
- Random array generation
- Real-time visualization with color-coded transitions:
- Blue – Unsorted bars
- Red – Bars being compared or swapped
- Green – Sorted bars
- Python 3
- Tkinter for GUI
- Object-Oriented Programming principles
- Modular design using multiple files for separation of concerns
Sortify/
│
├── main.py # Entry point of the application
├── algorithms.py # Sorting algorithm implementations
├── controller.py # Controls data flow and user actions
├── gui.py # GUI layout and component setup
├── visualizer.py # Drawing and animation logic
├── assets/ # Optional: screenshots, GIFs
└── README.md # Project documentation- Launch the application using main.py.
- Select a sorting algorithm from the dropdown.
- Choose a speed for the visualization.
- Click "Generate Array" to create a new dataset.
- Click "Sortify" to begin the sorting visualization.
Each step of the algorithm is animated in real-time, allowing users to observe how values are compared and swapped.
-
Clone the repository:
git clone https://github.com/your-username/sortify.git cd sortify -
Run the application:
python main.py
This project is licensed under the MIT License.
Yashitaa Arya CSE | NIT Hamirpur