Implement sorting and filtering

Addresses #97. Just waiting for Evan's filtering API
Need to talk about this...