<commit_before># Resort

[![Version](http://cocoapod-badges.herokuapp.com/v/Resort/badge.png)](http://cocoadocs.org/docsets/Resort)
[![Platform](http://cocoapod-badges.herokuapp.com/p/Resort/badge.png)](http://cocoadocs.org/docsets/Resort)

Resort is a small library that builds comparators from key paths and
combines separate comparators into compound comparators.

Sorting from a keyPath would be a very straightforward thing to do, if
it weren't for the edge cases. This library deals with nil and NSNull
values. It uses a pragmatic default and considers them always
less. But if that's not what you need you can specify that `nil` should
always be treated as more. Or you might want to fail fast and throw an
exception.

Order is defined for the classes in Foundation that support it
already: `NSString`, `NSDate`, `NSNumber`, `NSIndexPath`, as well as
their subclasses, e.g. NSMutableString and NSDecimalNumber.

In other cases, the comparator just performs the ordering on the
`-description` of the object.

## Usage

To run the example project; clone the repo, and run `pod install` from
the Example directory first.

## Requirements

Only Foundation framework. Tested on iOS 7 and OS X 10.9.

## Installation

Resort is available through [CocoaPods](http://cocoapods.org), to
install it simply add the following line to your Podfile:

    pod "Resort"

## Author

<NAME>, <EMAIL>

## License

Resort is available under the MIT license. See the LICENSE file for
more info.
<commit_msg>No pod yet; update README for now<commit_after># Resort

[![Version](http://cocoapod-badges.herokuapp.com/v/Resort/badge.png)](http://cocoadocs.org/docsets/Resort)
[![Platform](http://cocoapod-badges.herokuapp.com/p/Resort/badge.png)](http://cocoadocs.org/docsets/Resort)

Resort is a small library that builds comparators from key paths and
combines separate comparators into compound comparators.

Sorting from a keyPath would be a very straightforward thing to do, if
it weren't for the edge cases. This library deals with nil and NSNull
values. It uses a pragmatic default and considers them always
less. But if that's not what you need you can specify that `nil` should
always be treated as more. Or you might want to fail fast and throw an
exception.

Order is defined for the classes in Foundation that support it
already: `NSString`, `NSDate`, `NSNumber`, `NSIndexPath`, as well as
their subclasses, e.g. NSMutableString and NSDecimalNumber.

In other cases, the comparator just performs the ordering on the
`-description` of the object.

## Usage

To run the example project; clone the repo, and run `pod install` from
the Example directory first.

## Requirements

Only Foundation framework. Tested on iOS 7 and OS X 10.9.

## Author

<NAME>, <EMAIL>

## License

Resort is available under the MIT license. See the LICENSE file for
more info.

{'fraction_non_alphanumeric': 0.0825720309205903, 'fraction_numerical': 0.0028109627547434997, 'mean_word_length': 4.549707602339181, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3414418', 'n_tokens_mistral': 866, 'n_tokens_neox': 821, 'n_words': 377}