FREEPBX-7399 Make sorting and deleting compounded items standards compliant
[Module Tag script: recordings 3.4.0.3]