{"size": 251, "ext": "js", "max_stars_repo_path": "src/api/getOrderedDimensionKeys.js", "max_stars_repo_name": "crawld/parcoords-es", "max_stars_repo_stars_event_min_datetime": "2017-06-25T13:43:38.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-13T10:38:25.000Z", "max_issues_repo_path": "src/api/getOrderedDimensionKeys.js", "max_issues_repo_name": "crawld/parcoords-es", "max_issues_repo_issues_event_min_datetime": "2017-06-26T19:42:33.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T08:18:36.000Z", "max_forks_repo_path": "src/api/getOrderedDimensionKeys.js", "max_forks_repo_name": "timelyportfolio/parcoords-es", "max_forks_repo_forks_event_min_datetime": "2018-06-13T20:33:14.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-09T00:41:13.000Z"}
{"max_stars_count": 60, "max_issues_count": 75, "max_forks_count": 39, "avg_line_length": 27.8888888889, "max_line_length": 69, "alphanum_fraction": 0.7211155378}
import { ascending } from 'd3-array';

const getOrderedDimensionKeys = config => () =>
  Object.keys(config.dimensions).sort((x, y) =>
    ascending(config.dimensions[x].index, config.dimensions[y].index)
  );

export default getOrderedDimensionKeys;
