Let's say you have the rotor laying flat on a table. The magnets should be isntalled so that the first magnet has a north on the "top", and the next magnet's north is on the "bottom", and so on all the way around, so that you have 23 of them with norths on the side of the rotor facing the table, and 23 of them facing the other way.
They wont' push each other away in this configuration (not nearly as much as if you put them all the same way, anyway), but you'll still have to clamp each one down as you place it so it doesn't move as you place the next one.
The best way is to clamp them all at the same session, so the glue or epoxy, etc used is still workable the entire time you're doing it. That way you can ensure each one is correctly placed and spaced. For this you would need 46 clamps or a nonmetallic fixture that sits in the middle of the rotor leaving only space for the magnets between it and the rotor, so they can't flip around or move
You also have to be sure the spacing between them is as close to identical as possible--there's not much space there, but there can be some. If you have any gaps that are larger than others, the motor will not run perfectly smoothly (you might not notice it if it's small enough, but it will change the way currents have to be driven by the controller, and large gaps anywhere could make it a bit rough).
There's at least one thread here where a custom motor was built and magnets glued down, and at least one more where magnets were replaced on an existing motor, that have some pics of how they did this (unfortunately it was a long time back so I don't have a link; you'd have to find them which is hard with the existing search function, but you can try the old search here:
https://endless-sphere.com/forums-old/search.php