lib/ui/charting/js_charting.js
function(ticks) {
            var key,
                tickArray = [];

            for(key in ticks) {
                if(ticks.hasOwnProperty(key)) {
                    tickArray.push(ticks[key]);
                }
            }
            tickArray.sort(function(t1, t2) {
                return (t1.pos - t2.pos);
            });
            return tickArray;
        }
function(ticks) {
            var key,
                tickArray = [];

            for(key in ticks) {
                if(ticks.hasOwnProperty(key)) {
                    tickArray.push(ticks[key]);
                }
            }
            tickArray.sort(function(t1, t2) {
                return (t1.pos - t2.pos);
            });
            return tickArray;
        }
function ( ticks ) { var key , tickArray = [ ] ; for ( key in ticks ) { if ( ticks . hasOwnProperty ( key ) ) { tickArray . push ( ticks [ key ] ) ; } } tickArray . sort ( function ( t1 , t2 ) { return ( t1 . pos - t2 . pos ) ; } ) ; return tickArray ; }
returns the ticks in an array in ascending order by 'pos'
returns the ticks in an array in ascending order by pos