The xtd::ranges::views::order_by_view class is used to sort the elements of a sequence in ascending order according to a key.
Public Operators | |
| template<std::ranges::range range_t, typename key_selector_t> | |
| auto | operator() (range_t &&source, const key_selector_t &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key. | |
| template<typename key_selector_t> | |
| auto | operator() (const key_selector_t &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key. | |
|
inline |
Sorts the elements of a sequence in ascending order according to a key.
| range_t | The type of the elements of source. |
| source | A sequence of values to sort. |
| key_selector | A function to extract a key from an element. |
|
inline |
Sorts the elements of a sequence in ascending order according to a key.
| range_t | The type of the elements of source. |
| key_selector | A function to extract a key from an element. |