title: How do I put the options that contain a class on the very beginning of options
body: <p>I am making a option that have list of video that has audio and the video that has both audio and video</p>
  <p>I have added a class to the videos that have audio and video both and I want them to be at the very beginning of the list</p>
  <p>My Current code</p>
  <pre><code>&lt;select id=&quot;download-options&quot; class=&quot;select_download&quot;&gt;
    &lt;option value=&quot;140&quot;&gt;mp4 (only audio)&lt;/option&gt;
    &lt;option value=&quot;137&quot;&gt;mp4 - 1080p (no audio)&lt;/option&gt;
    &lt;option value=&quot;160&quot;&gt;mp4 - 144p (no audio)&lt;/option&gt;
    &lt;option value=&quot;133&quot;&gt;mp4 - 240p (no audio)&lt;/option&gt;
    &lt;option value=&quot;18&quot; class=&quot;has_video&quot;&gt;mp4 - 360p&lt;/option&gt;
    &lt;option value=&quot;134&quot;&gt;mp4 - 360p (no audio)&lt;/option&gt;
    &lt;option value=&quot;135&quot;&gt;mp4 - 480p (no audio)&lt;/option&gt;
    &lt;option value=&quot;22&quot; class=&quot;has_video&quot;&gt;mp4 - 720p&lt;/option&gt;
    &lt;option value=&quot;136&quot;&gt;mp4 - 720p (no audio)&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>And I want it to be like this</p>
  <pre><code>&lt;select id=&quot;download-options&quot; class=&quot;select_download&quot;&gt;
    &lt;option value=&quot;18&quot; class=&quot;has_video&quot;&gt;mp4 - 360p&lt;/option&gt;
    &lt;option value=&quot;22&quot; class=&quot;has_video&quot;&gt;mp4 - 720p&lt;/option&gt;
    &lt;option value=&quot;140&quot;&gt;mp4 (only audio)&lt;/option&gt;
    &lt;option value=&quot;137&quot;&gt;mp4 - 1080p (no audio)&lt;/option&gt;
    &lt;option value=&quot;160&quot;&gt;mp4 - 144p (no audio)&lt;/option&gt;
    &lt;option value=&quot;133&quot;&gt;mp4 - 240p (no audio)&lt;/option&gt;
    &lt;option value=&quot;134&quot;&gt;mp4 - 360p (no audio)&lt;/option&gt;
    &lt;option value=&quot;135&quot;&gt;mp4 - 480p (no audio)&lt;/option&gt;
    &lt;option value=&quot;136&quot;&gt;mp4 - 720p (no audio)&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>