Sort process tree by numeric PID, not by PID string

This commit is contained in:
Tony Garnock-Jones 2014-08-22 17:12:40 -07:00
parent e9697c8171
commit a62f00b8a3
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ World.prototype.processTree = function () {
for (var pid in this.tombstones) {
kids.push([pid, this.tombstones[pid]]);
}
kids.sort();
kids.sort(function (a, b) { return a[0] - b[0] });
return kids;
};