Implemented the functionality to allow the user to sort the analysis table by the model variable.