I got a problem, i got two array, one is the code is numeric and the other is the descripcion.
the code contens the values(1,2,3).
so i got this
datastructure ds
array 21 dimm(500) ascend
code 1 0 overlay(array)
descriptcion 20 overlat(array:*next)
the values are show in the right way ex:
1 A
1 B
....
3 A
3 B
when i do sort it stays oky, but since i need to do the sorta descendent i also got
datastructure2 ds based(abc)
array2 21 dimm(500) descend
code2 1 0 overlay(array)
descriptcion2 20 overlat(array:*next)
abc s * like(datastrucutere)
then i got this:
3 C
3 B
...
1 B
1 A
But what i want is
3 A
3 B
...
1 A
1 B
I evan trie to multiple the code for -1 to do the sort, but in this case it dosent work becouse the array is alfa and in that case 0003- is bigger than 0002- !
Any solucion?
the code contens the values(1,2,3).
so i got this
datastructure ds
array 21 dimm(500) ascend
code 1 0 overlay(array)
descriptcion 20 overlat(array:*next)
the values are show in the right way ex:
1 A
1 B
....
3 A
3 B
when i do sort it stays oky, but since i need to do the sorta descendent i also got
datastructure2 ds based(abc)
array2 21 dimm(500) descend
code2 1 0 overlay(array)
descriptcion2 20 overlat(array:*next)
abc s * like(datastrucutere)
then i got this:
3 C
3 B
...
1 B
1 A
But what i want is
3 A
3 B
...
1 A
1 B
I evan trie to multiple the code for -1 to do the sort, but in this case it dosent work becouse the array is alfa and in that case 0003- is bigger than 0002- !
Any solucion?
Comment