<div dir="ltr"><div><div>Hi All,</div><div>When I try to run the following code</div><div><div><br></div><div>event zeek_init()<br>        {<br>        local v: vector of interval = vector(1min,2min,1min,4min,6min,1min);<br>        local vo : vector of interval = sort(v);<br>            for (i in vo){<br>                    print vo[i];<br>            }       <br>        }<br></div></div></div><div><br></div><div>I get the expected output by as well I obtain the following error:</div><div>line 4: comparison function required for sort() with non-integral types (sort(v)) fatal error: errors occurred while initializing<br></div><div><br></div><div>I have followed the documentation. </div><div><a href="https://docs.zeek.org/en/current/scripts/base/bif/zeek.bif.zeek.html#sort">https://docs.zeek.org/en/current/scripts/base/bif/zeek.bif.zeek.html#sort</a><br></div><div>But I quite don&#39;t understand the part about the comparison function as a second argument. What parameter should be placed as a second argument? <div><a href="https://docs.zeek.org/en/current/scripts/base/bif/zeek.bif.zeek.html#sort"></a></div></div><div><br></div><div>Tomasz</div></div>