Fix lint for redundant-workflows list (#55916)
Summary:
Currently this lint is [passing](https://github.com/pytorch/pytorch/runs/2335195975) on https://github.com/pytorch/pytorch/issues/55176 when it should be failing, because it is using [`l.sort()` instead of `sorted(l)`](https://docs.python.org/3/howto/sorting.html).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55916
Test Plan: Check out https://github.com/pytorch/pytorch/pull/55176/commits/0c29aa1679403df6227d9e4d0b59267457ec309f, start a `python3` shell, and run the steps from this lint. The final `assert` from before this PR should succeed, and the `assert` from this PR should fail. The lint should succeed on this PR's CI, though, since the list of workflows is correct on `master`.
Reviewed By: janeyx99
Differential Revision: D27739792
Pulled By: samestep
fbshipit-source-id: 068fa846569eb83b98088215d8a1b63d12560633