nntc-ui 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2954,7 +2954,16 @@ function HeaderDropdown(props) {
|
|
|
2954
2954
|
name: i[headerResultName] ? valueFormat ? valueFormat(i[headerResultName].value?.toString() ?? "") : toFixed !== void 0 && !Number.isNaN(parseFloat(i[headerResultName].value)) ? parseFloat(Number(i[headerResultName].value).toFixed(toFixed)) : i[headerResultName].value || "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >" : "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >",
|
|
2955
2955
|
value: i[headerResultName]?.value || ""
|
|
2956
2956
|
})
|
|
2957
|
-
).sort((a, b) =>
|
|
2957
|
+
).sort((a, b) => {
|
|
2958
|
+
const aName = a.name.toString();
|
|
2959
|
+
const bName = b.name.toString();
|
|
2960
|
+
const noValue = "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >";
|
|
2961
|
+
if (aName === noValue)
|
|
2962
|
+
return -1;
|
|
2963
|
+
if (bName === noValue)
|
|
2964
|
+
return 1;
|
|
2965
|
+
return alphanumericCompare(aName, bName);
|
|
2966
|
+
});
|
|
2958
2967
|
const uniqueChecklistItems = [
|
|
2959
2968
|
...checklistItems.reduce((a, c) => {
|
|
2960
2969
|
a.set(c.value, c);
|