I had it solved with a hack, but this got shut down
Currently I’m solving this with constructs like this. I cannot drag rows this way (they are sorted by a column, which I calculate) but in my buttons I get to control how to reassign sorting indices to those: