[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Sorting Arrays ( help )



PureBytes Links

Trading Reference Links

I have found this Jscript for sorting in ascending Numeric order...Is
this the proper function...and ....can anyone fill in the blanks.....

periods=9;
pricechange=ROC(C,periods);

EnableScript("JScript");

<%
// Sorts records in ascending
// numeric value order
function sNumAsc(A, b) {
    return ((+A > +b) ? 1 : ((+A < +b) ? -1 : 0));
}

%>

Filter=1;
AddColumn(pricechange,"%change",1.2);


Thank you
Anthony


Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/