code: function () {
                  var _this = this;
                  /** @type {?} */
                  var _points = Array.from(this._points);
                  /** @type {?} */
                  var sortedPoints = [];
                  /** @type {?} */
                  var sortOrder = {
                      vertical: ['top', 'top', 'bottom', 'bottom'],
                      horizontal: ['left', 'right', 'right', 'left']
                  };
                  var _loop_1 = function (i) {
                      /** @type {?} */
                      var roles = Array.from([sortOrder.vertical[i], sortOrder.horizontal[i]]);
                      sortedPoints.push(_points.filter(function (point) {
                          return _this.limitsService.compareArray(point.roles, roles);
                      })[0]);
                  };
                  for (var i = 0; i < 4; i++) {
                      _loop_1(i);
                  }
                  this._sortedPoints = sortedPoints;
              }
docs: sorts the array of points according to their clockwise alignment
  @private
  @return {?}