Add minimal documentation and example for sorting by nested attributes

Hey Alex,
I had time to add a bit of documentation.