Avro defines a sort order for the objects. For most of the types it is natural ordering (for example ascending in case of int) . All the types