If list all process, sort process list by pid, else only list top $n process sorted by pcpu and pmem;