function checkFirst(array, sumGroup){
                        dividedSorted = Lib.Pivot.divideArray(array, sumGroup);
                        var firstElements = [];
                        for(var i = 0; i < dividedSorted.length; i++){
                            //firstElements - it is array of cells of Sums for each Person
                            firstElements.push(dividedSorted[i][0]);
                            dividedSorted[i].shift();
                        }
                        expect(Lib.Pivot.isSorted(firstElements, fn)).toBeTruthy();
                        return dividedSorted;
                    }
// divide array, because groups are sorted, so we need check only groups
divide array, because groups are sorted, so we need check only groups
divide array because groups are sorted so we need check only groups
function checkFirst(array, sumGroup){
                        dividedSorted = Lib.Pivot.divideArray(array, sumGroup);
                        var firstElements = [];
                        for(var i = 0; i < dividedSorted.length; i++){
                            firstElements.push(dividedSorted[i][0]);
                            dividedSorted[i].shift();
                        }
                        expect(Lib.Pivot.isSorted(firstElements, fn)).toBeTruthy();
                        return dividedSorted;
                    }
function checkFirst ( array , sumGroup ) { dividedSorted = Lib . Pivot . divideArray ( array , sumGroup ) ; var firstElements = [ ] ; for ( var i = 0 ; i < dividedSorted . length ; i ++ ) { firstElements . push ( dividedSorted [ i ] [ 0 ] ) ; dividedSorted [ i ] . shift ( ) ; } expect ( Lib . Pivot . isSorted ( firstElements , fn ) ) . toBeTruthy ( ) ; return dividedSorted ; }
divide array, because groups are sorted, so we need check only groups
divide array because groups are sorted so we need check only groups
//firstElements - it is array of cells of Sums for each Person