Calendar sorting by proximity