implement drugstores distance sort