Pretty straightforward swap.
1. Set the levers to they are both verically pointing upwards, this will prevent oil dripping out.
2. Unscrew the hose from the lever where it goes in (probably an 8mm spanner.
3. Once the retaining bolt is loose slide it down the hose out of the way. Do this for both hoses.
4. GENTLY waggle the hoses while pulling to release them from the levers. Be careful not to wave them about or you’ll lose oil. Once one is done, tape it to the bar to stop it flailing about and spraying oil while you do the other. You dont need lots of tape,just a little to stop it moving about. Release the other from the other lever the same way (but dont tape it).
5. Put the lose hose into the other lever, slide the retaining bolt back up and tighten it back into the lever.
6. Untape the other hose and bolt into the remaining lever.
Job done. If you’re careful then you’ll get away with no bleed. Its not tricky, just try not to be ham-fisted about it.