I have a list called all_of_the_data. this list contains 4 lists, list 1 = index 0 is Listings (str), list 2 = index 1 is Prices (str later converted to float), list 3 = index 2 is Dates (str), and list 4 = index 3 is Distance (float).
I want to sort Distance, list 4/index 3, lowest value -> highest value, but I want the elements to of the other lists to move with the sorted values.
all_of_the_data = 0[Listing #1, Listing #2, ... ]
1[Price #1, ...]
2[Date #1, ...]
3[19.2, 3, 20.3, ...]
So if 19.2 is moved to a new index 'z' in its list during the sort, then Listing #1, Price #1 and Date #1 should move to that index 'z' in all of their respected lists
I tried just outright sorting Distance list, but that just ruins the relation of Distance to the other elements like Listing and Price
the expected result is when the sort of the Distance list, all_of_the_data[3], is finished, then the relation of the elements Listing, Price, and Dates to Distance should stay the same.