title: Get-AdComputer format and sort list
body: <p>Attemping to get names of all computers, then sort them in ascending order, it gives me the list of computers, but wont sort them, what am I missing?   </p>
  
  <pre><code> Get-AdComputer -Filter * | format-table  Name; Sort-Object Name -Ascending  &gt;&gt; C:\Users\me\Desktop\All.txt
  </code></pre>
  
  <p>also tried</p>
  
  <pre><code> Get-AdComputer -Filter * | {format-table  Name; Sort-Object Name -Ascending  &gt;&gt; C:\Users\me\Desktop\All.txt}
  </code></pre>
  
  <p>but returns error</p>