Distance Sort
Median