{"size": 375, "ext": "js", "max_stars_repo_path": "src/hooks/usepagesAZOrder.js", "max_stars_repo_name": "pehaa/tartanify.com", "max_stars_repo_stars_event_min_datetime": "2020-03-04T21:02:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-22T15:35:26.000Z", "max_issues_repo_path": "src/hooks/usepagesAZOrder.js", "max_issues_repo_name": "pehaa/tartanify.com", "max_issues_repo_issues_event_min_datetime": "2021-05-10T16:11:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T18:27:46.000Z", "max_forks_repo_path": "src/hooks/usepagesAZOrder.js", "max_forks_repo_name": "pehaa/tartanify.com", "max_forks_repo_forks_event_min_datetime": "2020-03-05T02:01:07.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-06T21:57:09.000Z"}
{"max_stars_count": 18, "max_issues_count": 23, "max_forks_count": 6, "avg_line_length": 18.75, "max_line_length": 67, "alphanum_fraction": 0.5333333333}
import { useStaticQuery, graphql } from "gatsby"

const usePagesAZOrder = () => {
  const data = useStaticQuery(graphql`
    {
      allSitePage(filter: { path: { regex: "/^/tartans/.$/i" } }) {
        nodes {
          context {
            pageCount
          }
          path
        }
      }
    }
  `)
  return data.allSitePage.nodes
}

export default usePagesAZOrder
