Fix: Update comparator for std::sort for NamedAttribute #119385
|
@ -2527,7 +2527,7 @@ static std::string named_attribute_tooltip(bContext * /*C*/, void *argN, const c
|
|||
std::sort(sorted_used_attribute.begin(),
|
||||
sorted_used_attribute.end(),
|
||||
[](const NameWithUsage &a, const NameWithUsage &b) {
|
||||
return BLI_strcasecmp_natural(a.name.c_str(), b.name.c_str()) <= 0;
|
||||
return BLI_strcasecmp_natural(a.name.c_str(), b.name.c_str()) < 0;
|
||||
});
|
||||
|
||||
for (const NameWithUsage &attribute : sorted_used_attribute) {
|
||||
|
|
|
@ -2236,7 +2236,7 @@ static void draw_named_attributes_panel(uiLayout *layout, NodesModifierData &nmd
|
|||
std::sort(sorted_used_attribute.begin(),
|
||||
sorted_used_attribute.end(),
|
||||
[](const NameWithUsage &a, const NameWithUsage &b) {
|
||||
return BLI_strcasecmp_natural(a.name.c_str(), b.name.c_str()) <= 0;
|
||||
return BLI_strcasecmp_natural(a.name.c_str(), b.name.c_str()) < 0;
|
||||
});
|
||||
|
||||
for (const NameWithUsage &attribute : sorted_used_attribute) {
|
||||
|
|
Loading…
Reference in New Issue