Thanks :-]
The list in the drop down menu in the new pen wizard is
every named color that Qt has defined,
which is returned by QColor::colorNames()
The list returned by that function is already sorted alphabetically.
The list from the pen toolbar appears to be the colors defined by the Qt::GlobalColor enum.
http://doc.qt.io/qt-5/qcolor.html#predefined-colorsI'm not going to bother changing anything for now,
since a predefined list will from now on be secondary to the favorites list.
Maybe one day someone will add support for multiple favorites lists.