ok, so before i go into this sorting loop all the finishtimes are ok but not sorted, then i sort them using the little result type (wich also holds an id for the competitor so the program still knows what result is whos) and behold, all the finishtimes end up being 0...
i have written a sorting routine like this a million times and it always worked. I'm sure i've just made some silly misstake, can someone spot it for me?
repeat
changes=0
for i=1 to 7
if result(i+1).finishtime# < result(i).finishtime#
xr=result(i)
result(i)=result(i+1)
result(i+1)=xr
changes = 1
endif
next i
until changes=0