src/sap.ui.core/src/sap/ui/model/odata/v4/ODataUtils.js
function (vValue1, vValue2, vEdmType) {
				if (vEdmType === true || vEdmType === "Decimal") {
					return BaseODataUtils.compare(vValue1, vValue2, true);
				}
				if (vEdmType === "DateTime") {
					return BaseODataUtils.compare(
							ODataUtils.parseDateTimeOffset(vValue1),
							ODataUtils.parseDateTimeOffset(vValue2));
				}
				return BaseODataUtils.compare(vValue1, vValue2);
			}
function (vValue1, vValue2, vEdmType) {
				if (vEdmType === true || vEdmType === "Decimal") {
					return BaseODataUtils.compare(vValue1, vValue2, true);
				}
				if (vEdmType === "DateTime") {
					return BaseODataUtils.compare(
							ODataUtils.parseDateTimeOffset(vValue1),
							ODataUtils.parseDateTimeOffset(vValue2));
				}
				return BaseODataUtils.compare(vValue1, vValue2);
			}
function ( vValue1 , vValue2 , vEdmType ) { if ( vEdmType === true || vEdmType === "Decimal" ) { return BaseODataUtils . compare ( vValue1 , vValue2 , true ) ; } if ( vEdmType === "DateTime" ) { return BaseODataUtils . compare ( ODataUtils . parseDateTimeOffset ( vValue1 ) , ODataUtils . parseDateTimeOffset ( vValue2 ) ) ; } return BaseODataUtils . compare ( vValue1 , vValue2 ) ; }
Compares the given OData values.

@param {any} vValue1
The first value to compare
@param {any} vValue2
The second value to compare
@param {boolean|string} [vEdmType]
If <code>true</code> or "Decimal", the string values <code>vValue1</code> and
<code>vValue2</code> are assumed to be valid "Edm.Decimal" or "Edm.Int64" values
and are compared as a decimal number (only sign, integer and fraction digits; no
exponential format).
If "DateTime", the string values <code>vValue1</code> and <code>vValue2</code>
are assumed to be valid "Edm.DateTimeOffset" values and are compared based on the
corresponding number of milliseconds since 1 January, 1970 UTC.
Otherwise the values are compared with the JavaScript operators <code>===</code>
and <code>></code>.
@return {number}
The result of the comparison: <code>0</code> if the values are equal,
<code>1</code> if the first value is larger, <code>-1</code> if the second value
is larger, <code>NaN</code> if they cannot be compared

@public
@since 1.43.0
Compares the given OData values .