Fix generate pages command (children sort), phpdoc