Add a test for reverse sorting.