Can I suggest you mention the packages you are using.
Also surround code on both sides with ``` helps with visualation e.g.
@orderby |> @groupby
Also creating a Minimal Working Example (MWE) helps, see Please read: make it easier to help you - #81