sorting
RU: сортировка
The process of rearranging the elements of a collection so that they satisfy a total order — typically ascending or descending by a key. Algorithms differ in time complexity (O(n log n) optimal for comparison-based sorting), space usage, stability, and adaptability to partially ordered input.