How to make htop sort by PID

htop --sort-key PID

appears to work. Found it via htop --help.

htop --sort-key help

shows a list of all the column keys.


Press F6 and select PID...