Attempting to make a module for AngularJS that handles table sorting/pagination without the use of any libraries outside of AngularJS.