code: function SortOrderComparator(sortOrder, options) {
          this.sortOrder = sortOrder;
          this.options = {
              casesensitive: false
          };
          if (options) {
              _.extend(this.options, options);
          }
          this.expressions = new Array(sortOrder.sortFields.length);
          for (var i = 0; i < this.expressions.length; ++i) {
              this.expressions[i] = new JsonPath_1.JsonPath(sortOrder.sortFields[i].name);
          }
      }
docs: constructs a compiled SortOrder for object comparison.
  
  @param sortOrder to realize.