def nearby(self, lat: float, lon: float, radius: int = None) -> "Stations":
        """
        Sort/filter weather stations by physical distance
        """

        # Create temporal instance
        temp = copy(self)

        # Get distance for each station
        temp._data["distance"] = get_distance(
            lat, lon, temp._data["latitude"], temp._data["longitude"]
        )

        # Filter by radius
        if radius:
            temp._data = temp._data[temp._data["distance"] <= radius]

        # Sort stations by distance
        temp._data.columns.str.strip()
        temp._data = temp._data.sort_values("distance")

        # Return self
        return temp

        Sort/filter weather stations by physical distance
        
meteostat/interface/stations.py