refactoted data-api for sortable-table component
updated documentation ro reflect code
added tests for sortable table