Problem/Motivation
There's no views sort handler for sorting on the moderation state field. In #2862041: Provide useful Views filters for Content Moderation State fields, a filter handler was added for filtering on moderation state. It would be useful to have this so results could be ordered by their current moderation state.
Steps to reproduce this:
- Install content moderation.
- Go to Content > Moderated content.
- Click on the "Moderation state" column.
- Exception should appear.
Proposed resolution
Add the appropriate handlers to make sorting work.
Remaining tasks
Review patch.
User interface changes
Fixes exception that bubbles up to the UI.
API changes
None.
Data model changes
None.