can the data be sorted using get_linked_beans()

I’m using get_linked_beans() to retrieve quote lines but I would like to sort the returned beans by the field “number”. Is there a way to do so through get_linked_beans() or do I have to sort them manually after the call?

Hi.

As far as i can see i dont (could be wrong) in this case anything that sorts the beans from the returned list

But if it were me i would code it by looking up a basic sorting algorithm of some sort. Although, depending on the list size of beans, you would want to pick the most appropriate sorting algorithm.

Good luck!

That’s what I figured. Thanks.