{"size": 413, "ext": "js", "max_stars_repo_path": "resources/js/mixins/sortdirection-handler.js", "max_stars_repo_name": "narkoze/blog", "max_stars_repo_stars_event_min_datetime": "2018-10-26T08:48:26.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-06T23:15:10.000Z", "max_issues_repo_path": "resources/js/mixins/sortdirection-handler.js", "max_issues_repo_name": "narkoze/blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/mixins/sortdirection-handler.js", "max_forks_repo_name": "narkoze/blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.65, "max_line_length": 88, "alphanum_fraction": 0.5326876513}
export default {
  data: () => ({
    params: {
      sortBy: null,
      sortDirection: null
    },
    sorting: false
  }),
  methods: {
    handleSortdirection (sort) {
      if (this.params.sortBy !== sort) {
        this.params.sortBy = sort
        this.params.sortDirection = 'asc'
      } else {
        this.params.sortDirection = this.params.sortDirection === 'asc' ? 'desc' : 'asc'
      }
    }
  }
}
