in reply to Re^2: Comparing two arrays
in thread Comparing two arrays
Sort by what criteria? "closest" by what criteria?That obviously depends upon what the OP is trying to do. Maybe he wants lexicographic sorting, or maybe some other mapping; it's not specified in the question, so I didn't guess.