_createCircles(amount) {
        const circles = [];

        // create circles
        for (let i = 0; i < amount; i++) {
            circles.push(this._createCircle());
        } // for
        // sort circles
        circles.sort((circle1, circle2) => circle1._color > circle2._color ? -1 : 1);

        return circles;
    }
/**
     * Creates an array of Circle
     * objects sorted by color.
     * @private
     * @param {number} amount
     * @return an array of Circle objects sorted by color
     */
Creates an array of Circle
objects sorted by color.
@private
@param {number} amount
@return an array of Circle objects sorted by color
Creates an array of Circle objects sorted by color . @private @param { number } amount @return an array of Circle objects sorted by color
_createCircles(amount) {
        const circles = [];
        for (let i = 0; i < amount; i++) {
            circles.push(this._createCircle());
        } 
        circles.sort((circle1, circle2) => circle1._color > circle2._color ? -1 : 1);
        return circles;
    }
_createCircles ( amount ) { const circles = [ ] ; for ( let i = 0 ; i < amount ; i ++ ) { circles . push ( this . _createCircle ( ) ) ; } circles . sort ( ( circle1 , circle2 ) => circle1 . _color > circle2 . _color ? - 1 : 1 ) ; return circles ; }
Creates an array of Circle
 objects sorted by color.
Creates an array of Circle objects sorted by color .
// create circles // for // sort circles