How to sort the tasklist in the command prompt?

Slackware picture Slackware · Mar 12, 2012 · Viewed 54.8k times · Source

I just wanted to know how to make the MEMUSAGE column be in decreasing or increasing order. I searched all over the web and still did not find the answer, the closest point I got was this:

tasklist | sort

But when I try to use the /m for sort...:

tasklist | sort /m
Invalid switch.

Thanks for any help.

Answer

kev picture kev · Mar 12, 2012
C:\> tasklist | sort /R /+58

The magic number 58 depend on your output.
Sorts the file according to characters in column 58(No guarantee!).