diff --git a/src/index.js b/src/index.js index e63fea5805..c2558abd3c 100644 --- a/src/index.js +++ b/src/index.js @@ -327,7 +327,7 @@ export { // language AST. extendSchema, // Sort a GraphQLSchema. - lexographicSortSchema, + lexicographicSortSchema, // Print a GraphQLSchema to GraphQL Schema language. printSchema, // Prints the built-in introspection schema in the Schema Language diff --git a/src/utilities/__tests__/lexographicSortSchema-test.js b/src/utilities/__tests__/lexicographicSortSchema-test.js similarity index 97% rename from src/utilities/__tests__/lexographicSortSchema-test.js rename to src/utilities/__tests__/lexicographicSortSchema-test.js index 50a775ac90..b6565f7a3d 100644 --- a/src/utilities/__tests__/lexographicSortSchema-test.js +++ b/src/utilities/__tests__/lexicographicSortSchema-test.js @@ -10,14 +10,14 @@ import { expect } from 'chai'; import dedent from '../../jsutils/dedent'; import { printSchema } from '../schemaPrinter'; import { buildSchema } from '../buildASTSchema'; -import { lexographicSortSchema } from '../lexographicSortSchema'; +import { lexicographicSortSchema } from '../lexicographicSortSchema'; function sortSDL(sdl) { const schema = buildSchema(sdl); - return printSchema(lexographicSortSchema(schema)); + return printSchema(lexicographicSortSchema(schema)); } -describe('lexographicSortSchema', () => { +describe('lexicographicSortSchema', () => { it('sort fields', () => { const sorted = sortSDL(dedent` input Bar { diff --git a/src/utilities/index.js b/src/utilities/index.js index be2a6dcf96..4593ba72d2 100644 --- a/src/utilities/index.js +++ b/src/utilities/index.js @@ -54,7 +54,7 @@ export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema'; export { extendSchema } from './extendSchema'; // Sort a GraphQLSchema. -export { lexographicSortSchema } from './lexographicSortSchema'; +export { lexicographicSortSchema } from './lexicographicSortSchema'; // Print a GraphQLSchema to GraphQL Schema language. export { diff --git a/src/utilities/lexographicSortSchema.js b/src/utilities/lexicographicSortSchema.js similarity index 98% rename from src/utilities/lexographicSortSchema.js rename to src/utilities/lexicographicSortSchema.js index 0e6abc48a3..657a2e6eb4 100644 --- a/src/utilities/lexographicSortSchema.js +++ b/src/utilities/lexicographicSortSchema.js @@ -35,7 +35,7 @@ import { isIntrospectionType } from '../type/introspection'; /** * Sort GraphQLSchema. */ -export function lexographicSortSchema(schema: GraphQLSchema): GraphQLSchema { +export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema { const cache = Object.create(null); const sortMaybeType = maybeType => maybeType && sortNamedType(maybeType);