data = {
"age": [41, 21, 88],
"name": ["Rob", "Tom", "Susan"],
"color": ["Red", "Blue", "Orange"]
}
Is there a way to effectively sort the data in these records based on the values of one specific array while maintaining the original data structure? I have already tried using the sort() function but it seems to break the connection between the different arrays.
data = {
"age": [21, 41, 88],
"name": ["Tom", "Rob", "Susan"],
"color": ["Blue", "Red", "Orange"]
}