Tagged articles
4 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Apr 27, 2025 · Fundamentals

Master Python’s Stable Sorting: Using sorted() with key and reverse

Python’s sorted() function offers stable sorting, allowing multi‑criteria ordering through successive sorts, while its flexible key parameter lets you customize sorting logic—such as sorting by length then alphabetically—and the reverse flag enables effortless descending order, making complex sorting tasks straightforward.

PythonSortingkey function
0 likes · 4 min read
Master Python’s Stable Sorting: Using sorted() with key and reverse
Python Programming Learning Circle
Python Programming Learning Circle
Nov 30, 2022 · Fundamentals

Sorting Algorithms Overview with Python Implementations

This article provides a comprehensive overview of common sorting algorithms—including bubble, selection, insertion, shell, merge, quick, heap, counting, bucket, and radix sorts—explaining their principles, time complexities, stability, and includes detailed Python code examples and visual illustrations for each method.

PythonSorting Algorithmsalgorithm complexity
0 likes · 18 min read
Sorting Algorithms Overview with Python Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Mar 17, 2022 · Fundamentals

Comprehensive Overview of Common Sorting Algorithms with Python Implementations

This article provides a detailed introduction to internal and external sorting, compares the time‑complexities and stability of classic algorithms such as bubble, selection, insertion, shell, merge, quick, heap, counting, bucket and radix sorts, and includes complete Python code examples for each.

Data StructuresPythonSorting Algorithms
0 likes · 20 min read
Comprehensive Overview of Common Sorting Algorithms with Python Implementations