---
title: compareNumerically
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfstringcompareflags/comparenumerically
---

# compareNumerically

Specifies that represented numeric values should be used as the basis for comparison and not the actual character values.

## Declaration

```swift
static var compareNumerically: CFStringCompareFlags { get }
```

## Discussion

Discussion For example, “version 2” is less than “version 10”. This comparison does not work if kCFCompareLocalized is specified on systems before OS X v10.3.

## See Also

### Constants

- [compareCaseInsensitive](corefoundation/cfstringcompareflags/comparecaseinsensitive.md)
- [compareBackwards](corefoundation/cfstringcompareflags/comparebackwards.md)
- [compareAnchored](corefoundation/cfstringcompareflags/compareanchored.md)
- [compareNonliteral](corefoundation/cfstringcompareflags/comparenonliteral.md)
- [compareLocalized](corefoundation/cfstringcompareflags/comparelocalized.md)
- [compareDiacriticInsensitive](corefoundation/cfstringcompareflags/comparediacriticinsensitive.md)
- [compareWidthInsensitive](corefoundation/cfstringcompareflags/comparewidthinsensitive.md)
- [compareForcedOrdering](corefoundation/cfstringcompareflags/compareforcedordering.md)
