Sort resources in the quest tree by natural order. Fix #579.