Index: choose.cc =================================================================== RCS file: /cvs/src/src/winsup/cinstall/choose.cc,v retrieving revision 2.47 diff -u -p -r2.47 choose.cc --- choose.cc 2001/08/05 01:38:46 2.47 +++ choose.cc 2001/09/24 03:12:55 @@ -899,14 +899,14 @@ _view::insert_under (int linen, pick_lin /* part 2 - insert in sorted order in the bucket */ while (n < nlines) { - if (lines[n].get_category () || (lines[n].get_pkg () - && strcasecmp (line.get_pkg ()->name, lines[n].get_pkg ()->name) < 0)) + if (lines[n].get_pkg () == line.get_pkg ()) { - insert_at (n, line); n = nlines; } - else if (lines[n].get_pkg () == line.get_pkg ()) + else if (lines[n].get_category () || (lines[n].get_pkg () + && strcasecmp (line.get_pkg ()->name, lines[n].get_pkg ()->name) < 0)) { + insert_at (n, line); n = nlines; } n++;