title: Sort files by two string in file name: Batch File
body: <p>I would like to sort a set of files in a specific order using a batch file.
  The files should be grouped by <code>Floor</code> number and sorted by a string which is contained in the filename.</p>
  
  <p>An example of some file names are as follows:</p>
  
  <blockquote>
  <pre><code>Floor_1_SomeName_PCI_Some Trailing Text.JPG
  Floor_1_SomeName_RSRP_Some Trailing Text.JPG
  Floor_1_SomeName_RSRQ_Some Trailing Text.JPG
  Floor_1_SomeName_RSSI_Some Trailing Text.JPG
  Floor_1_SomeName_SINR_Some Trailing Text.JPG
  Floor_1_SomeName_TX Power_Some Trailing Text.JPG
  
  Floor_2_SomeName_PCI_Some Trailing Text.JPG
  Floor_2_SomeName_RSRP_Some Trailing Text.JPG
  Floor_2_SomeName_RSRQ_Some Trailing Text.JPG
  Floor_2_SomeName_RSSI_Some Trailing Text.JPG
  Floor_2_SomeName_SINR_Some Trailing Text.JPG
  Floor_2_SomeName_TX Power_Some Trailing Text.JPG
  </code></pre>
  </blockquote>
  
  <p>I would like to sort all files by its <code>Floor</code> number first, then by the following order:</p>
  
  <blockquote>
  <pre><code>RSSI
  RSRP
  RSRQ
  SINR
  TX Power
  PCI
  </code></pre>
  </blockquote>
  
  <p>Is there a way I can utilize the <code>sort</code> command to organize this?</p>