Sorting — Chapter Summary
Haryana Board · Class 12 · Computer Science
Summary of Sorting for Haryana Board Class 12 Computer Science. Part of the Haryana Board Class 12 Computer Science syllabus.
Interactive on Super Tutor
Studying Sorting? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for chapter summary and more.
Free trial, no card needed.

Learn better with visuals Super Tutor pairs illustrations like this with notes and quizzes for Sorting.
Overview
Sorting is the process of ordering or arranging a given collection of elements in a particular order. Numbers can be sorted in ascending or descending order. Strings can be sorted alphabetically or by length. Sorting makes searching and handling data easier, especially when the collection is large.
Key Concepts
Sorting means arranging elements in
Sorting means arranging elements in a required order such as ascending, descending, alphabetical, or length-based order.
Every iteration through each element
Every iteration through each element of a list in an algorithm is called a pass.
Bubble sort repeatedly compares adjacent elements
Bubble sort repeatedly compares adjacent elements and swaps them if they are unordered. For a list with n elements, it makes n - 1 passes. After each
Selection sort divides the list into
Selection sort divides the list into a sorted left part and an unsorted right part. In each pass, it finds the smallest element in the unsorted part a
Insertion sort divides the list into
Insertion sort divides the list into sorted and unsorted parts. Each unsorted element is inserted into its correct position in the sorted part by scan
Learning Objectives
- Understand the meaning and purpose of sorting
- Learn bubble sort, selection sort, and insertion sort
- Recognize passes, comparisons, and swaps in sorting
- Understand how each algorithm works on a list
- Compare the time complexity of basic sorting algorithms
Frequently Asked Questions
What are the important topics in Sorting for Haryana Board Class 12 Computer Science?
How should I revise Sorting for the Haryana Board Class 12 board exam?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Sorting
Practice Quiz
Test yourself with a quick quiz
Important Questions
Exam-style questions with answers
Revision Notes
Key points for last-minute revision
Formula Sheet
The chapter's formulas in one place
Concept Maps
See how topics connect
Study Plan
Step-by-step plan for this chapter
Flashcards
Quick-fire cards for active recall
Syllabus
What topics to cover
NCERT Solutions
Every textbook question solved step by step
For serious students
Get the full Sorting chapter — start free.
Quizzes, flashcards, an AI doubt solver and a study plan for Haryana Board Class 12 Computer Science. Free to start, no card needed.