Fixed table sorting issue on the flight profile

Fixed the issue from here:
https://github.com/barriespotter/Web_App/issues/10