The "show parent command path" commit changed the criteria for active nodes,
and the collate logic wasn't updated. (Oops.)
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 4f8d75a..b204962 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1075,8 +1075,8 @@
   while (dt) {
     struct dirtree *next = dt->next;
 
+    if (dt->extra) *(tb++) = (void *)dt->extra;
     if (dt->child) tb = collate_leaves(tb, dt->child);
-    else *(tb++) = (void *)dt->extra;
     free(dt);
     dt = next;
   }