docs: function sortCompare (x, y) {
    // 1. If x and y are both undefined, return +0.
    if (x === undefined && y === undefined) {
      return 0;
    }
  
    // 2. If x is undefined, return 1.
    if (x === undefined) {
      return 1;
    }
  
    // 3. If y is undefined, return -1.
    if (y === undefined) {
      return -1;
    }
  
    // 5. Let xString be ? ToString(x).
    x = String(x);
  
    // 6. Let yString be ? ToString(y).
    y = String(y);
  
    // 7. Let xSmaller be the result of performing Abstract Relational
    //    Comparison xString < yString.
    // 8. If xSmaller is true, return -1.
    // 9. Let ySmaller be the result of performing Abstract Relational
    //    Comparison yString < xString.
    // 10. If ySmaller is true, return 1.
    // 11. Return +0.
    return (x < y) ? -1 : (x > y) ? 1 : 0;
  }