# SortedArray

A sorted array type written in Swift 3.0.

Provides the `SortedArray` type, an array that keeps its elements sorted according to a given sort predicate.

Written by Ole Begemann, February 2017.

For more info, see my accompanying [blog article](https://oleb.net/blog/2017/02/sorted-array/).

## Usage

Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.

If you want to try this out in a Swift Package Manager project, add this to your `Package.swift` file:

```swift
// Package.swift
import PackageDescription

let package = Package(
    name: "<Your package name>",
    dependencies: [
        .Package(url: "https://github.com/ole/SortedArray.git", majorVersion: 0)
    ]
)
```

## Dependencies

None.

## License

[MIT license](https://github.com/ole/SortedArray/blob/master/LICENSE.txt).

# SortedArray

A sorted array type written in Swift 3.0.

Provides the `SortedArray` type, an array that keeps its elements sorted according to a given sort predicate.

Written by Ole Begemann, February 2017.

For more info, see my accompanying [blog article](https://oleb.net/blog/2017/02/sorted-array/).

## Status

[![Build Status](https://travis-ci.org/ole/SortedArray.svg?branch=master)](https://travis-ci.org/ole/SortedArray)

## Usage

Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.

If you want to try this out in a Swift Package Manager project, add this to your `Package.swift` file:

```swift
// Package.swift
import PackageDescription

let package = Package(
    name: "<Your package name>",
    dependencies: [
        .Package(url: "https://github.com/ole/SortedArray.git", majorVersion: 0)
    ]
)
```

## Dependencies

None.

## License

[MIT license](https://github.com/ole/SortedArray/blob/master/LICENSE.txt).

Add Travis CI badge to readme
Add Travis CI badge to readme
