added test for $first and $last group operators
fixed sorting by nested field
more tests and updated readme