Table Sort fixed with new data array manipulation

Search now working functionally, not connected to search bar yet