[console] sort types alphabetically in remote schema type dropdown (close #9412)

GITHUB_PR_NUMBER: 9413
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9413

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7799
Co-authored-by: Tom Jenkinson <3259993+tjenkinson@users.noreply.github.com>
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: 7392b4c0c5eb237a143ce7b398d0a85bef4602fc
This commit is contained in:
hasura-bot 2023-02-09 22:02:38 +05:30
parent 5cba05b441
commit f35e043cb6
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ const SelectOne = ({
data-test={label}
>
<option value="">Select Type ...</option>
{options.map((op, i) => (
{[...options].sort().map((op, i) => (
<option value={op} key={i}>
{op}
</option>

View File

@ -31,7 +31,7 @@ const SelectOne = ({
<option value="" className="text-base">
Select Type ...
</option>
{options.map((op, i) => (
{[...options].sort().map((op, i) => (
<option value={op} key={i}>
{op}
</option>