[PATCH 7/9] Make sorting by action type part of the action classes.