Tag

sorting

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 11, 2025 · Backend Development

Master PHP’s array_unique(): Remove Duplicates and Sort Arrays Efficiently

Learn how to use PHP’s array_unique() function to eliminate duplicate values from arrays, understand its parameters—including optional sort flags—and see practical code examples that demonstrate deduplication and sorting for both string and numeric arrays.

PHParray_uniquearrays
0 likes · 4 min read
Master PHP’s array_unique(): Remove Duplicates and Sort Arrays Efficiently
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.

Pythonkey functionprogramming fundamentals
0 likes · 4 min read
Master Python’s Stable Sorting: Using sorted() with key and reverse
Raymond Ops
Raymond Ops
Apr 22, 2025 · Fundamentals

Master Python’s sort vs sorted: When and How to Use Each Efficiently

This article explains the differences between Python's list.sort method and the built‑in sorted function, covering their syntax, parameters, performance nuances, and practical code examples for ascending, descending, and custom key sorting.

Pythoncode exampleslist.sort
0 likes · 6 min read
Master Python’s sort vs sorted: When and How to Use Each Efficiently
Python Programming Learning Circle
Python Programming Learning Circle
Feb 21, 2025 · Fundamentals

Comprehensive Overview of Common Sorting Algorithms with Python Implementations

This article provides a detailed introduction to common sorting algorithms—including bubble, selection, insertion, shell, merge, quick, heap, counting, bucket, and radix sorts—explaining their principles, time complexities, stability, and offering complete Python implementations with step-by-step explanations and visual demonstrations.

AlgorithmsData Structurescomplexity
0 likes · 21 min read
Comprehensive Overview of Common Sorting Algorithms with Python Implementations
Top Architecture Tech Stack
Top Architecture Tech Stack
Feb 21, 2025 · Databases

SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies

This article explores advanced SQL query optimization techniques for large datasets, covering sorting methods, GROUP BY improvements, pagination strategies, covering indexes, and prefix index considerations, with practical examples, EXPLAIN analyses, and recommendations to reduce filesort usage and enhance performance.

IndexingMySQLSQL
0 likes · 17 min read
SQL Query Optimization: Sorting, GROUP BY, Pagination, and Index Strategies
Python Programming Learning Circle
Python Programming Learning Circle
Jan 23, 2025 · Fundamentals

Comprehensive Overview of Classic Algorithms and Their Python Implementations

This article presents a detailed guide to classic sorting, searching, and encryption algorithms, explains their principles and use cases, and provides Python implementation links and visualizations, offering a valuable resource for learners seeking to master fundamental algorithmic techniques.

AlgorithmsData StructuresPython
0 likes · 14 min read
Comprehensive Overview of Classic Algorithms and Their Python Implementations
php中文网 Courses
php中文网 Courses
Jan 10, 2025 · Backend Development

Using PHP's array_multisort() Function to Sort Multiple Arrays

This article explains the syntax and parameters of PHP's array_multisort() function, demonstrates its usage with a concrete example sorting names, ages, and scores, and shows the resulting ordered arrays, highlighting how to sort multiple arrays simultaneously.

Code ExamplePHParray_multisort
0 likes · 4 min read
Using PHP's array_multisort() Function to Sort Multiple Arrays
php中文网 Courses
php中文网 Courses
Dec 24, 2024 · Backend Development

Using PHP's array_unique() Function to Remove Duplicate Array Elements

This article explains PHP's array_unique() function, detailing its syntax, parameters, and return value, and provides clear examples showing how to remove duplicate elements from arrays and optionally sort them using the $sort_flag parameter.

Duplicate RemovalPHParray_unique
0 likes · 4 min read
Using PHP's array_unique() Function to Remove Duplicate Array Elements
php中文网 Courses
php中文网 Courses
Nov 21, 2024 · Backend Development

How to Use PHP’s array_multisort() Function to Sort Multiple Arrays

This article explains the syntax and parameters of PHP’s array_multisort() function, demonstrates its usage with a practical example of sorting student names, ages, and scores, and shows the resulting output, highlighting how to sort multiple arrays simultaneously.

Backend DevelopmentCode ExamplePHP
0 likes · 5 min read
How to Use PHP’s array_multisort() Function to Sort Multiple Arrays
Test Development Learning Exchange
Test Development Learning Exchange
Nov 16, 2024 · Fundamentals

Introduction to Pandas: Creating Series and DataFrames, CSV I/O, Filtering and Sorting

This tutorial introduces Pandas fundamentals, demonstrating how to create Series and DataFrames, read and write CSV files, perform basic filtering and sorting, and includes practical code examples and a hands‑on exercise to display the first five rows of a CSV dataset.

CSVPythondata analysis
0 likes · 5 min read
Introduction to Pandas: Creating Series and DataFrames, CSV I/O, Filtering and Sorting
php中文网 Courses
php中文网 Courses
Sep 24, 2024 · Backend Development

Using PHP array_multisort() to Sort Multiple Arrays

This article explains the PHP array_multisort() function, its syntax and parameters, and demonstrates how to sort several related arrays—such as names, ages, and scores—by a primary key using a concrete code example and the resulting output.

PHP8array_multisortsorting
0 likes · 4 min read
Using PHP array_multisort() to Sort Multiple Arrays
Test Development Learning Exchange
Test Development Learning Exchange
Sep 21, 2024 · Fundamentals

Python List Operations: Sorting, Traversing, Deleting, Adding, Modifying, Indexing, and Basic List Functions

This tutorial demonstrates essential Python list operations, covering case‑sensitive and case‑insensitive sorting, reverse ordering, iteration with for and while loops, element removal by value or index, clearing, appending, inserting, extending, item modification, slicing, indexing, length checking, and mixed‑type lists, all illustrated with clear code examples.

CRUDIterationPython
0 likes · 5 min read
Python List Operations: Sorting, Traversing, Deleting, Adding, Modifying, Indexing, and Basic List Functions
Test Development Learning Exchange
Test Development Learning Exchange
Sep 19, 2024 · Fundamentals

Custom Sorting in Python

This article introduces various methods to customize sorting in Python, including using sorted() function, list's .sort() method, and custom comparison functions.

Comparison FunctionsCustom SortingKey Functions
0 likes · 8 min read
Custom Sorting in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 17, 2024 · Fundamentals

Using Functions as Parameters in Python: Concepts and Practical Examples

This article explains Python's higher‑order functions, showing how functions can be passed as arguments through concepts, simple examples, decorators, sorting, data processing, logging, and asynchronous callbacks, each illustrated with clear code snippets.

Async CallbacksData ProcessingFunctions as Parameters
0 likes · 6 min read
Using Functions as Parameters in Python: Concepts and Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 25, 2024 · Fundamentals

Common Python List Operations: Sorting, Filtering, Searching, Merging, and More

This article demonstrates ten practical Python list techniques—including sorting by ID, filtering by condition, locating elements, removing items, merging lists, finding intersections and differences, converting to dictionaries, using list comprehensions, and deduplicating—each illustrated with clear code examples and expected output.

Searchingfilteringlist
0 likes · 6 min read
Common Python List Operations: Sorting, Filtering, Searching, Merging, and More
php中文网 Courses
php中文网 Courses
Aug 20, 2024 · Backend Development

Using PHP array_unique() to Remove Duplicate Elements

This article explains the PHP array_unique() function, its syntax and parameters, demonstrates how to remove duplicate values from arrays with practical code examples, and shows how the optional $sort_flag argument can affect sorting behavior.

Duplicate RemovalPHParray_unique
0 likes · 4 min read
Using PHP array_unique() to Remove Duplicate Elements
Code Ape Tech Column
Code Ape Tech Column
Aug 15, 2024 · Backend Development

Comprehensive Guide to TreeUtil: Building, Traversing, Flattening, and Sorting Tree Structures in Java

This article presents a detailed walkthrough of the TreeUtil class, demonstrating how to construct hierarchical tree structures from flat lists, define tree nodes in Java, perform generic and functional implementations of makeTree, traverse trees using pre‑order, level‑order and post‑order methods, flatten trees back to lists, and sort tree nodes recursively, all illustrated with complete code examples.

DataStructureFlattenUtility
0 likes · 16 min read
Comprehensive Guide to TreeUtil: Building, Traversing, Flattening, and Sorting Tree Structures in Java
php中文网 Courses
php中文网 Courses
Jul 23, 2024 · Backend Development

Using PHP’s array_multisort() Function to Sort Multiple Arrays

This article explains the syntax and parameters of PHP’s array_multisort() function, demonstrates its usage with a concrete example that sorts student names, ages, and scores, and shows the resulting output while highlighting important flags and usage tips.

Backend DevelopmentPHParray_multisort
0 likes · 5 min read
Using PHP’s array_multisort() Function to Sort Multiple Arrays
Python Programming Learning Circle
Python Programming Learning Circle
Jul 13, 2024 · Fundamentals

Understanding Python's list.sort() Method and sorted() Function

This article explains how Python's list.sort() method sorts a list in place, how the built‑in sorted() function returns a new sorted list for any iterable, and demonstrates various parameters, custom key functions, and practical code examples for effective sorting.

Pythonlist.sortprogramming fundamentals
0 likes · 7 min read
Understanding Python's list.sort() Method and sorted() Function