if there's no build in swap command, then you just read both values into some temp variables and write them back.
Temp1= result[5]
Temp2= result[7]
result[5] = Temp2
result[7] = Temp1
depending upon how frequently you need to swap in your routines, then perhaps rolling the swap logic into a custom swap function might help reduce the code.
something like
function SwapResult(Src,Dest)
Temp1= result[Src]
Temp2= result[Dest]
result[Src] = Temp2
result[Dest] = Temp1
EndFunction
alternatively you might want to use one less temp..
Temp= result[5]
result[5]= result[7]
result[7]=Temp
none the less, the principal is the same.. it's possible to swap without using temp variables, by various math operators which can be a fun little programming challenge, but generally overkill