pub fn sort_by_key<K, V>(
keys: &Array<K>,
vals: &Array<V>,
dim: u32,
ascending: bool
) -> (Array<K>, Array<V>) where
K: HasAfEnum + RealNumber,
V: HasAfEnum,
Sort the values in input Arrays
Sort an multidimensional Array based on keys
keys
- Array with key valuesvals
- Array with input valuesdim
- Dimension along which to sortascending
- Sorted output will have ascending values if True
and descending order otherwise.A tuple of Arrays.
The first Array contains the keys based on sorted values.
The second Array contains the sorted values.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4