Update GenericData.java

Property compareIdx added to fields to be able to control the order to be used to compare the fields of a record type.