function
boot.janet on line 824, column 1
(sort-by f ind)
Returns a new sorted array that compares elements by invoking a
function on each element and comparing the result with <.
(sort-by
(fn [x] (get x :b)
@[{:a 1 :b 100} {:a 100 :b 1} {:a -1 :b 50}])
# -> @[{:a 100 :b 1} {:a -1 :b 50} {:a 1 :b 100}]