Added Ransack gem for table sorting. TODO: Not sorting for joined table