Open lehoff opened 3 months ago
reorder
just doesn't do what you want unfortunately.
It just switches the current Ordered
order, whatever it is, to one you want, like ForwardOrdered
. Its like reverse
but declaritive rather than imperitive.
But that is actually a cool idea... reorder
could do a lot more than it does currently.
But actually, you can just do this with a vector in At
!
Q[from=At(["ε", "H", "HT", "HTT"])]
Except it wont fix the order if you break it! Starting with Unordered
that is of course not a problem.
I have this array:
and I want to reorder the colums like this:
(I need a differen order than
new_order
on theto
axis later on, but that is not for now.)However, I get this error:
If I add in an
order=...
in the call toCategorical
the error goes away, but I am not getting the order I want.It seems somewhat related to #626, but I know too little about Julia to judge that.