Add support for nested attributes

Hey Alex, I used your excellent binding for a table but needed to sort by an nested attribute of my objects so I extended it. Here is what I did, you might like it.

Disclaimer: This is my first ever pull request, this is also my first contribution to any open source project. Please let me know if there's anything I could do better in the future!