@barchart/portfolio-api-common 1.0.49 → 1.0.50
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.
|
@@ -100,7 +100,11 @@ module.exports = (() => {
|
|
|
100
100
|
}, { });
|
|
101
101
|
|
|
102
102
|
const getIndex = (description) => {
|
|
103
|
-
|
|
103
|
+
if (ordering.hasOwnProperty(description)) {
|
|
104
|
+
return ordering[description];
|
|
105
|
+
} else {
|
|
106
|
+
return Number.MAX_VALUE;
|
|
107
|
+
}
|
|
104
108
|
};
|
|
105
109
|
|
|
106
110
|
builder = ComparatorBuilder.startWith((a, b) => {
|
package/package.json
CHANGED
package/test/SpecRunner.js
CHANGED
|
@@ -615,7 +615,11 @@ module.exports = (() => {
|
|
|
615
615
|
}, { });
|
|
616
616
|
|
|
617
617
|
const getIndex = (description) => {
|
|
618
|
-
|
|
618
|
+
if (ordering.hasOwnProperty(description)) {
|
|
619
|
+
return ordering[description];
|
|
620
|
+
} else {
|
|
621
|
+
return Number.MAX_VALUE;
|
|
622
|
+
}
|
|
619
623
|
};
|
|
620
624
|
|
|
621
625
|
builder = ComparatorBuilder.startWith((a, b) => {
|