Page 1 of 1

Ordenar solo una parte de un array

Posted: Thu Feb 25, 2021 9:42 pm
by goosfancito
hola.

Puedo indicarle con aSort que ordene un sector del array? como ser de la posicion 6 a la 10 ?

gracias.

Re: Ordenar solo una parte de un array

Posted: Thu Feb 25, 2021 9:58 pm
by hmpaquito
ASort()
Posted on January 7, 2014 by vivaclipper


ASORT()
Sort an array

Syntax

ASORT( <aArray>, [<nStart>], [<nCount>], [<bSort>] ) --> aArray
Arguments

<aArray> Array to be sorted.

<nStart> The first element to start the sort from, default is 1.

<nCount> Number of elements starting from <nStart> to sort, default is all elements.

<bSort> Code block for sorting order, default is ascending order {| x, y | x < y }. The code block should accept two parameters and must return .T. if the sort is in order, .F. if not.

Re: Ordenar solo una parte de un array

Posted: Thu Feb 25, 2021 10:02 pm
by goosfancito
gracias