Bugs item #808214, was opened at 2003-09-17 18:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=808214&group_id=9368

Category: Installation
Group: 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Naughton (naughtont)
Assigned to: Nobody/Anonymous (nobody)
Summary: Setup networking - client list sorted incorrectly

Initial Comment:
When doing the "Setup Networking" step, the list of

"All Clients" has the nodes sorted by alpha order

instead of a numeric sort.



This causes problems if you import a list and want to

auto assign b/c the ordering will be off for MAC->node#.



The C3/scripts/post_clients does a numeric sort on the

resulting hash values that should pretty much work just

not sure where it should go, e.g.,



foreach my $key (sort numerically keys %hash) {

   ....

}



# Sort hostnames numerically instead of an ascii sort.

# Special sort() sub-rtn (uses $a, $b instead of @_)

sub numerically

{

     $a =~ /(\d+)$/;   #pickoff number and

     my $A = $1;        # save in local var



     $b =~ /(\d+)$/;    #pickoff number and

     my $B = $1;         # save in local var



     ($A <=> $B)

}



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=808214&group_id=9368


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to