ps - Handle unexpected output order when sorting by memory or cpu
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 5 Mar 2011 22:44:22 +0000 (14:44 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 5 Mar 2011 22:44:22 +0000 (14:44 -0800)
commit7c75e4b97eedf419709b08e4d037ee1526bffe45
tree27db3b3b97c62f61dbd3358e099065032a06ab25
parent9b42fdc95445ec2e9e96793c59748227f691e6d2
ps - Handle unexpected output order when sorting by memory or cpu

* When sorting by memory or cpu, including when using 'u' as in 'ps aux',
  if the primary sort critera is an exact match fall back to the default
  sort critera (tty and then pid).

Reported-by: swildner
bin/ps/ps.c