Sort messages by distance finnished; Search finished