Understanding WHMCS hook priorities
<p>I'm working on a module for WHMCS that needs to execute a few functions after the daily cron job. This isn't too hard to do, but I'm having some issues understanding hook priorities, since the functions need to be executed in a specific order.</p>

<p>I've looked online, but haven't found a definitive answer yet, and the WHMCS documentation is severely lacking in this aspect.</p>

<p><strong>I'm looking for the following information:</strong></p>

<ul>
<li>Are hook actions executed by ascending or descending priority?</li>
<li>Are duplicate priorities for the same hook allowed?</li>
</ul>

<p>Thanks!</p>