BILINGUAL WORD CARD · RANK 73

sort

📏 Sorts elements in ascending order rapidly

Built-in fast sorting algorithm.

中文对照 · Chinese

📏 一声令下让全班按从矮到高瞬间站好队

Python 用 `a.sort()` 或 `sorted(a)`,C++ 用 `std::sort(v.begin(), v.end())`。

Code example

sort(v.begin(), v.end());
Explore 100 bilingual word cards →