table sort now fully functional, sorting on page load and uploads