dev script for page tree sorts correctly now