23 const QModelIndex &right)
const
25 QString s1 = sourceModel()->data(left).toString();
26 QString s2 = sourceModel()->data(right).toString();
28 const bool isNumber1 = s1.startsWith(
":1."_L1);
29 const bool isNumber2 = s2.startsWith(
":1."_L1);
30 if (isNumber1 == isNumber2) {
32 int number1 = QStringView{s1}.mid(3).toInt();
33 int number2 = QStringView{s2}.mid(3).toInt();
34 return number1 < number2;
36 return s1.compare(s2, Qt::CaseInsensitive) < 0;