pjc-fields 0.0.52 → 0.0.53
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/fesm2022/pjc-fields.mjs
CHANGED
|
@@ -1555,11 +1555,9 @@ class PjcEnumService {
|
|
|
1555
1555
|
getItems(url) {
|
|
1556
1556
|
return this.http
|
|
1557
1557
|
.get(url)
|
|
1558
|
-
.pipe(map((data) => data
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
const aDisplay = a.descricao || a.nome || '';
|
|
1562
|
-
const bDisplay = b.descricao || b.nome || '';
|
|
1558
|
+
.pipe(map((data) => [...data].sort((a, b) => {
|
|
1559
|
+
const aDisplay = String(a['descricao'] || a['nome'] || '');
|
|
1560
|
+
const bDisplay = String(b['descricao'] || b['nome'] || '');
|
|
1563
1561
|
return aDisplay.localeCompare(bDisplay);
|
|
1564
1562
|
})));
|
|
1565
1563
|
}
|