I have some logic that is being used to sort data but depending on the user input the data is grouped differently. Right now I have five different functions that contain the sa
Try to use a switch case.