Skip to content

Commit

Permalink
Alphabetize Schema Fields#11
Browse files Browse the repository at this point in the history
  • Loading branch information
klimart committed Jun 30, 2018
1 parent f947cad commit fa2c3b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/Magento/Framework/GraphQl/Config.php
Expand Up @@ -53,6 +53,11 @@ public function getConfigElement(string $configElementName) : ConfigElementInter
sprintf('Config element "%s" is not declared in GraphQL schema', $configElementName)
);
}

if (!empty($data['fields']) && is_array($data['fields'])) {
ksort($data['fields']);
}

return $this->configElementFactory->createFromConfigData($data);
}

Expand Down

0 comments on commit fa2c3b5

Please sign in to comment.