Is there an easy way of sorting StructArrays? I've been using Transducers.jl to manipulate the data. But I didn't find how it can be used to sort the data.
Can you elaborate the problem? Regular sort(A)
and sort(A; by=...)
work with StructArrays.
aplavin said:
Can you elaborate the problem? Regular
sort(A)
andsort(A; by=...)
work with StructArrays.
I was trying sort(A, :x)
.
Oh, so it works with sort(A, by=x->x.x)
.
Thanks, @aplavin .
Davi Sales Barreira has marked this topic as resolved.
Last updated: Nov 06 2024 at 04:40 UTC