 <p>Here are a couple of tricks I found. Credit goes to Codemanx for the original solution of</p> <blockquote> <pre><code>array.sort(function() { return 1; }) </code></pre> </blockquote> <p>In Typescript, this can be simplified to just one line</p> <pre><code>array.sort(() =&gt; 1) </code></pre> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var numbers = [1,4,9,13,16]; console.log(numbers.sort(() =&gt; 1));</code></pre> </div> </div> </p> <p>Since this will be the future of JavaScript, I thought I'd share that.</p> <p>Here's another trick if your array only has 2 elements</p> <pre><code>array.push(array.shift()); </code></pre>