A bookshop's stock page has a Sort by price button. Your test reads the prices before the click and sorts them. That is the order you expect. It clicks the button and reads the prices again. Then it sorts those too, to be safe, and compares the two lists. The test passes. It also passes when the button does nothing at all.
The second sort is the bug. Once your test sorts what it read, the list is in order whatever the page showed. The test can no longer fail on order, and order is the one thing it was meant to check.