So _tally has changed when used in an aggregate function SQL. What about the following?
SELECTDISTINCTALLTRIM(code)+" - "+ALLTRIM(code_desc) AS codename ;
FROM codes
WHERE code_id = "COLLATTYPE"INTOARRAY a_collatty
PUBLIC a_collatty[_tally+1]
a_collatty[_tally+1] = " "
=ASORT(a_collatty)