ps -wwax -o ppid,pid,pgid,rss,vsz,nice,%mem,%cpu,rgid,ruser,user,stat,command \ | sort -k1,1n -k2,2n