tell application id "com.figure53.QLab.5" to tell front workspace
set theCue to last item of (selected as list)
set newCueID to uniqueID of theCue
set thePara to (parent of theCue)
set paraIDX to uniqueID of thePara
set selected to thePara
set theGrp to last item of (selected as list)
set theGrpIDX to uniqueID of theGrp
move cue id newCueID of parent of theCue to end of the first cue list
tell parent of (theCue)
move cue id newCueID to before the (cue id (theGrpIDX))
--move cue id newCueID to after the cue id theGrpIDX
end tell
set selected to theCue
end tell
tell application id "com.figure53.QLab.5" to tell front workspace
move cue "2" to after cue "6"
move cue "5" to end of cue "3"
move cue "10" to end of cue "3"
move cue "3" to before cue "1"
move cue "2" to before cue "9"
end tell