FREEPBX-7399 Make sorting and deleting compounded items standards compliant