Order an array
Posted: Mon Feb 24, 2020 11:21 am
I have this array
![Image](https://i.postimg.cc/c1Ps6WWX/hhhh.png)
AaDd(atemp,{strzero(n,4),;
SP->elemento,;
SP->desc,;
SP->settore,;
nGiorni,;
aPrices[k],;
lIslock,;
aListini[k][2] } )
the user found problems to modify the price and he wish see before specific strings (col2+col4)
before all "Ombrellone" and sectors
then all "Palma" and sectors
and then all "Cabina" and sectors
I made ASORT( aData,,, { |x,y| x[3] } ) but not run ok
![Image](https://i.postimg.cc/c1Ps6WWX/hhhh.png)
AaDd(atemp,{strzero(n,4),;
SP->elemento,;
SP->desc,;
SP->settore,;
nGiorni,;
aPrices[k],;
lIslock,;
aListini[k][2] } )
the user found problems to modify the price and he wish see before specific strings (col2+col4)
before all "Ombrellone" and sectors
then all "Palma" and sectors
and then all "Cabina" and sectors
I made ASORT( aData,,, { |x,y| x[3] } ) but not run ok