Added documentation and examples for sorting and querying.
Fixed dynatable for examples in docs.