title: Can a wmic processes table (within the command prompt window) be sorted by a value?
body: <p>I've been exploring various options, such as the <code>/format</code> flag, however it appears that sorting is only possible in XML or HTML output. I would like to sort within command prompt itself. It seems that even <a href="http://technet.microsoft.com/en-us/library/bb491010.aspx" rel="nofollow">TaskList</a> cannot do this (and I would prefer to use wmic since it seems to perform faster).</p>
  
  <p>An example of a command to run would be <code>wmic process get name,processid,workingsetsize</code>. Processes appear to be sorted by processid, but it would make much more sense (in my use case, at least) to sort by name or memory usage (<code>workingsetsize</code>).</p>
  
  <p>As requested, here's an example wmic process table output:</p>
  
  <pre><code>Name                          ProcessId  WorkingSetSize
  System Idle Process           0          20480
  System                        4          765952
  smss.exe                      384        393216
  csrss.exe                     500        2850816
  wininit.exe                   596        774144
  csrss.exe                     612        6230016
  winlogon.exe                  672        2023424
  services.exe                  696        7192576
  lsass.exe                     704        9814016
  svchost.exe                   820        5287936
  svchost.exe                   872        7454720
  atiesrxx.exe                  936        1028096
  </code></pre>
  
  <p>Obviously, process lists can get very long, so I've cut it off there.</p>