diff --git a/src/components/conformance/ResultsDisplay/index.tsx b/src/components/conformance/ResultsDisplay/index.tsx index 2f94e341..b8c9ebe9 100644 --- a/src/components/conformance/ResultsDisplay/index.tsx +++ b/src/components/conformance/ResultsDisplay/index.tsx @@ -90,6 +90,7 @@ export default function ResultsDisplay(props: ResultsProps): JSX.Element { props.state.version, newPath, props.state.ecmaScriptVersion, + props.state.sortOption, ), }); }; @@ -105,6 +106,7 @@ export default function ResultsDisplay(props: ResultsProps): JSX.Element { props.state.version, slicedPath, props.state.ecmaScriptVersion, + props.state.sortOption, ), }); }; diff --git a/src/components/conformance/ResultsDisplay/nav.tsx b/src/components/conformance/ResultsDisplay/nav.tsx index 375a85e8..79d0923e 100644 --- a/src/components/conformance/ResultsDisplay/nav.tsx +++ b/src/components/conformance/ResultsDisplay/nav.tsx @@ -132,7 +132,7 @@ type SortProps = { }; function SortingDropdown(props: SortProps): JSX.Element { - const [sortValue, setSortValue] = React.useState(); + const [sortValue, setSortValue] = React.useState(props.sortValue ? props.sortValue : "alpha"); React.useEffect(() => { setSortValue(props.sortValue);