digest_tree: In sortdigestnode, also need to return 0 if the two nodes compare equal (otherwise sort behaves unpredictably).