max
ecc87a4081
fix(sort): avoid int64 overflow comparing large integers
...
The int/int comparator returned int(lhs - rhs); the int64 subtraction overflows for large-magnitude values, giving the wrong sign. Compare directly instead.
2026-07-06 03:55:06 +02:00
Antoine Deschênes
b15ce77cad
fix: correct key order after add, flatten, keys, sort, reverse and shuffle
...
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com>
2025-06-07 21:04:26 +10:00
Mike Farah
f202d06d82
sort_by works on maps
2025-01-22 14:36:50 +11:00
Mike Farah
4af292f076
Fixed handling of nulls with sort_by expressions #2164
2024-11-16 12:27:18 +11:00
Mike Farah
45eda8dbae
Added support for shorthand splat[] for filter,reverse,sort,shuffle
2024-06-15 22:13:58 +10:00
Mike Farah
13d1bbb45f
Generic ast ( #1829 )
...
Remove dependency on yaml.Node for internal AST representation. Yaml decoder is now just another decoder.
2023-10-18 12:11:53 +11:00
Mike Farah
a1698b740a
Added ability to sort by multiple fields #1541
2023-02-11 04:46:39 +11:00
Mike Farah
cf02b90624
Fixed sorting by date #1412
2022-11-04 12:21:12 +11:00
Mike Farah
ea66a73f43
Fixed sort dropping head comment #1181
2022-04-14 12:19:15 +10:00
Mike Farah
8142e94349
Added reverse op
2022-02-22 14:15:31 +11:00
Mike Farah
df32baedf1
Added XML decoder ( #1044 )
2021-12-21 15:02:07 +11:00
Mike Farah
8b04d972f3
Improved error message
2021-12-05 10:58:26 +11:00
Mike Farah
e22df34158
Added sort_by operator
2021-12-04 13:54:12 +11:00
Mike Farah
2f05f7390f
wip
2021-12-04 13:25:32 +11:00