@trudb/tru-common-lib 0.2.243 → 0.2.244
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.
|
@@ -1605,7 +1605,7 @@ class TruEntityAccessor {
|
|
|
1605
1605
|
if (query && query.orderByClause)
|
|
1606
1606
|
return _.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: hid !== null ? hid : entity.HID }; });
|
|
1607
1607
|
else
|
|
1608
|
-
return _.sortBy(_.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label:
|
|
1608
|
+
return _.sortBy(_.map(entities, (entity) => { return { value: { $: entity[pKeyName] }, label: entity.HID }; }), 'label');
|
|
1609
1609
|
};
|
|
1610
1610
|
formatNameValues = (query, entities, pKeyName) => {
|
|
1611
1611
|
if (query && query.orderByClause)
|