whole_func_string: function sortData(dataset, sortKey, sortOrder = "ascending") {
    if (!sortKey) {
      return dataset;
    }
  
    // Ensures previous VictoryLine api for sortKey prop stays consistent
    if (sortKey === "x" || sortKey === "y") {
      sortKey = `_${sortKey}`;
    }
    const order = sortOrder === "ascending" ? "asc" : "desc";
    return orderBy(dataset, sortKey, order);
  }
func_code_string: function sortData(dataset, sortKey, sortOrder = "ascending") {
    if (!sortKey) {
      return dataset;
    }
  
    // Ensures previous VictoryLine api for sortKey prop stays consistent
    if (sortKey === "x" || sortKey === "y") {
      sortKey = `_${sortKey}`;
    }
    const order = sortOrder === "ascending" ? "asc" : "desc";
    return orderBy(dataset, sortKey, order);
  }
func_documentation_string: Returns sorted data. If no sort keys are provided, data is returned unaltered.