<p>You are given an integer <code>num.</code><strong>Rearrange</strong> the digits of <code>num</code> such that its value is <strong>minimized</strong> and it does not contain <strong>any</strong> leading zeros.</p>
<p>Return <em>the rearranged number with minimal value</em>.</p>
<p>Note that the sign of the number does not change after rearranging the digits.</p>