Sort functionality

closes #276 
`filter-collection` could also live in that namespace