Returning children by priority order