Skip to content

[Enhancement]: Add ascending/descending order selection to Bubble Sort CLI tool #552

@jyotish6699

Description

@jyotish6699

Enhancement Request: Add Sorting Order Selection to Bubble Sort CLI Tool

Description

Currently, the Bubble Sort mini-project supports only ascending order sorting.

I would like to enhance the existing CLI tool by allowing users to choose the sorting order (ascending or descending) before performing the sort operation.

Proposed Changes

  • Add user choice for:

    • Ascending Order
    • Descending Order
  • Improve input validation for invalid order selection

  • Add additional test cases for descending order sorting

  • Keep the implementation CLI-based only

Example

Choose sorting order:
1. Ascending
2. Descending

Note

This enhancement is limited to the existing command-line interaction and does not overlap with GUI/visualization-related feature requests already under discussion.

Benefits

  • Improves flexibility of the sorting tool
  • Enhances learning experience for beginners
  • Makes the Bubble Sort implementation more reusable and interactive

I would like to work on this enhancement under GSSoC.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions