... it here, thanks As you could see i have changed local oDlg, oBrw, arr := { "one", "two", "three" } , StartNr := 3 IN local oDlg, oBrw, arr := { "zone", "two", "three" } , StartNr := 3 Your solution seems to work , but it is good to know that startnr is the index in the sorted array , here zone. ...