Just put the current slide numbers in the order you need. Include all slides
So something like:
Sub changeorder()
Dim rayOrder() As String
Dim neworder() As Long
Dim L As Long
Dim lngTot As Long
On Error Resume Next
lngTot = ActivePresentation.Slides.Count
rayOrder = Split("22,35,18,6,24.....", ",")
ReDim neworder(0 To UBound(rayOrder))
For L = 0 To UBound(rayOrder)
neworder(L) = ActivePresentation.Slides(CLng(rayOrder(L))).SlideID
Next L
For L = 0 To UBound(rayOrder)
ActivePresentation.Slides.FindBySlideID(neworder(L)).MoveTo lngTot
Next L
End Sub
The other comma means split up at each comma. You couls also split at e.g. a "/" which might be asier to understand
Sub changeorder()
Dim rayOrder() As String
Dim neworder() As Long
Dim L As Long
Dim lngTot As Long
On Error Resume Next
lngTot = ActivePresentation.Slides.Count
rayOrder = Split("5/3/2/1/4", "/")
ReDim neworder(0 To UBound(rayOrder))
For L = 0 To UBound(rayOrder)
neworder(L) = ActivePresentation.Slides(CLng(rayOrder(L))).SlideID
Next L
For L = 0 To UBound(rayOrder)
ActivePresentation.Slides.FindBySlideID(neworder(L)).MoveTo lngTot
Next L
End Sub
Notice you DO need the comma between the text to split and the split character