trim space for actions, sort lists