>Hi,
>How to sort array on combination on third element plus first letter of second element;
>
>
>COPY to ARRAY N1 fields B_P, NAZIV, KT_BR
>_br = ALEN(N1, 1)
>ASORT(N1,3)
>
>
>I mean something like:
>
>for n = 1 to _br
>
> now it is neccessary to add left(naziv,1) to KT_BR and at end sort again
>
>TIA
>gojko
If you're creating it from a cursor/table why not get it sorted in the first place? ie:
select B_P, NAZIV, KT_BR from myTable order by 3,1 into array aN1
Cetin