Hello,
First, it depends on the contents of your
rebdsysmst.txt file. Maybe you can use (if it's OK with the structure of your datas) : read/lines wich returns directly a block (block!) with all lines. First line = blk/1, second line = blk/2, etc.
For iteration, "foreach" is often quicker than "for". And why you initialize your sortBlock at any interation ?
If you use anyway the "for" form, your variable can change like (note the ":" before the y variable) :
list: [ blk1 [inf1 inf2] blk2 [info1 info2] blk3 [ii1 ii2]]
result: copy []
for y 2 (length? list) 2 [
regnbr: list/:y/1
append result regnbr
]
probe sort result
; and same with foreach
result2: copy []
foreach [data1 data2 ] list [
append result2 data2/1
]
probe sort result2
It's a way. Adapt it to your case.
===Philippe