Sort warning by locations