cgeo/c-geo-opensource — pull request #954 by campbeb (2012-01-07 04:56:08+00:00)
Title: Fix946: Comparator must allow for objects to be equal

If cache1 and cache2 are archived then coords will be null. This means that distance between them is "equal". Current code doesn't allow for equal which is why it violates the contract. The sorting algorithm gets confused because it is getting arbitrary answers.