Red ORM for the Raku language - #red logs are going to be saved on logs.liz.nl, and later logs.raku.org
Set by SmokeMachine on 1 June 2021.
06:09 abraxxa joined 06:16 abraxxa left, abraxxa joined 09:06 abraxxa left, abraxxa joined 17:18 abraxxa left 18:18 lizmat left 18:21 lizmat joined
patrickb o/ 18:44
I'm probably missing the obvious, how do I `ORDER BY` in Red? 18:45
Grepping through the source reveals some tests that do `.^all.sort().grep()`. I guess that's just what I need. 18:55
19:16 samebchase3 joined 19:24 samebchase left, samebchase3 is now known as samebchase
SmokeMachine patrickb: yes, you can use `Model.^all.sort(*.column)` 20:30
Or `Model.^all.sort(-*.column)` 20:31
patrickb oh! That's nice. Thanks for the tip! 20:35
SmokeMachine ResultSeq has many useful methods: fco.github.io/Red/api/Red/ResultSeq 20:38
patrickb: 👆 20:39