Creating a Query Parameter for Sorting

You’ll learn how to add and use a query parameter for sorting in this lesson.

We'll cover the following

Now, we get to finally do what we came for. We can add a query parameter for sorting.

Test for checking param

Let’s first extend the tests to check that the parameter appears in the URL.