bws in calendar sorting by distance