Fix a bug in dependency sorting in avro schema processor.