Assignments sort+filter

@karllindmark 

This is your homework to check, since you are not available for chat
Just re-considering the design of the class: should we pass `SortMode mode` into the `sort()` method instead?