Do you have some way to sort% of the form:
struct cidadecoord
{
char cidade[90];
int coordx, coordy;
}cidades[N];
N is worth 30 in the case, and I would like to order the coordinates x and y, to find out which cities were more to the east, west, north and south. I'm having trouble, because I do not know how to sort by keeping the city name information for each coordinate.