Added function to sort for oncoprint plotting