assets/js/pie/jquery.jchart.js
// sort data by their order parameter
sort data by their order parameter
sort data by their order parameter
function compare(a, b) {
                if (a['order'] === null) return 1;
                if (b['order'] === null) return -1;
                if (a['order'] < b['order'])
                    return -1;
                if (a['order'] > b['order'])
                    return 1;
                return 0;
            }
function compare ( a , b ) { if ( a [ 'order' ] === null ) return 1 ; if ( b [ 'order' ] === null ) return - 1 ; if ( a [ 'order' ] < b [ 'order' ] ) return - 1 ; if ( a [ 'order' ] > b [ 'order' ] ) return 1 ; return 0 ; }
sort data by their order parameter
sort data by their order parameter