EntityDAC
Compares its own value with AValue.
TEntityAttribute
function Compare(AValue: TEDValue): Integer;
If Self = AValue - returns '0';
If Self > AValue - returns '1';
If Self < AValue - returns '-1';