Can a wmic processes table (within the command prompt window) be sorted by a value?
I've been exploring various options, such as the /format 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 TaskList cannot do this (and I would prefer to use wmic since it seems to perform faster). An example of a command to run would be wmic process get name,processid,workingsetsize . 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 ( workingsetsize ). As requested, here's an example wmic process table output: