title: Salt stack top.sls pillar order
body: <p>I'm trying to understand how Salt order and prioritizes matched minions in a <code>top.sls</code> file for a Pillar. </p>
  
  <p>I want Salt to prioritize my entries in the Pillar but I get seemingly random sorting orders (not first, not last, not alphabetical afaik). I have had a look at the <a href="http://docs.saltstack.com/en/latest/ref/states/ordering.html#the-order-option" rel="nofollow">order option</a> but would prefer not to use it (if it is even available in Pillars?)</p>
  
  <p><strong>/srv/pillar/top.sls</strong></p>
  
  <pre><code>base:
    '*':
      - users
    'office-london-*':
      - office.general.london
    'office-ny-*':
      - office.general.ny
    'office-*-cust-*':
      - office.cust
    'office-*-cust-ntp*':
      - office.cust-ntp
  </code></pre>
  
  <p><strong>minions</strong></p>
  
  <ul>
  <li><p>office-london-cust -> <code>office.general.london</code></p></li>
  <li><p>office-london-cust-server1 -> <code>office.cust</code></p></li>
  <li><p>office-london-cust-ntp-server1 -> <code>office.cust-ntp</code></p></li>
  <li><p>office-ny-cust -> <code>office.general.ny</code></p></li>
  <li><p>office-ny-cust-server1 -> <code>office.cust</code></p></li>
  <li><p>office-ny-cust-ntp-server1 -> <code>office.cust-ntp</code></p></li>
  </ul>
  
  <p>Here are some links to Github issues I've had a look at without figuring this out:</p>
  
  <p><a href="https://github.com/saltstack/salt/pull/1287" rel="nofollow">https://github.com/saltstack/salt/pull/1287</a></p>
  
  <p><a href="https://github.com/saltstack/salt/issues/13657" rel="nofollow">https://github.com/saltstack/salt/issues/13657</a></p>
  
  <p><a href="https://github.com/saltstack/salt/issues/1432" rel="nofollow">https://github.com/saltstack/salt/issues/1432</a></p>
  
  <p><a href="https://github.com/saltstack/salt/issues/14723" rel="nofollow">https://github.com/saltstack/salt/issues/14723</a></p>