Tiered select

I made two commits, one for the feature and one for the test (which includes a bunch of pasted data), so probably easier to review commit by commit.

![screen shot 2013-07-30 at 6 26 06 pm](https://f.cloud.github.com/assets/137212/882656/411347d8-f967-11e2-8ba9-799868b9e1e8.png)