initial commit with actual code

If we do, the sort can be the last command, so it doesn't need to process as much data after it's been filtered.