Open Balinus opened 6 years ago
Any idea? Right now, I can do some custom checks in my package but I think this kind of behaviour should, in the end, reside upstream.
Cheers!
In theory, sorting should already be happening:
Strange that it's not, maybe the axis isn't being recognized as a Dimensional for some reason... I would consider this a bug.
Hello!
I'm wondering if there is a way to easily keep one of the axis as a "sort" axis constraint in merge operations. Here's an example of what is the current behavior:
Now, trying
sort(M)
returnsHence, the values are sorted, but not the time axis definition.
Ideally, I would like to enforce the
:time
axis to be the sorting constraint inmerge
function.I coded a workaround in a custom merge function which consist of reverting the order of the argument (i.e.
merge(B, A) -> merge(A, B)
). But I suspect that it only works for 2-input call to merge without a more complex workaround.Thanks for any help or hint on how it can be done!