> How do you sort distances to prepare for nearest neighbor when the > results returned look like this Have you read up on the "key" parameter for Python's sort() function? You can use that, along with split() to do this. Alan