Lots of useful options!
-
$ ps uax --sort=-pmem,-pcpu
--sort is sometimes flaky
Lots of useful options!
$ ps uax --sort=-pmem,-pcpu
And there are at least three ways to do anything you want to do. ps is the Perl of performance programs.
The man page talks about -sort=format, but it isn't that reliable; depending on the other options you give it, it might not work.