i think only with find after inserted
Type MyType
ID
name as string
EndType
myItem as MyType
myItem.ID = 1
myItem.name = "Abc"
myArray as MyType[2]
myArray[0].ID=3
myArray[0].name="C"
myArray[1].ID=4
myArray[1].name="D"
myArray[2].ID=5
myArray[2].name="E"
local i as integer
myArray.insertsorted(myItem)
local found as integer
found = myArray.find(myItem.ID)
Do
print("found index "+str(found))
for i=0 to myArray.length
print("Index "+ str(i) + " ID "+str(myArray[i].ID)+" Name "+myArray[i].name)
next
sync()
Loop
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : AMD (17.12.1) Radeon R7 265 : Mac mini OS High Sierra (10.13)