Arreglado el orden en addCategory_Personas
This commit is contained in:
@@ -287,10 +287,14 @@ function addCategory_Personas(
|
|||||||
parent.append(details_0);
|
parent.append(details_0);
|
||||||
var lastreg = "";
|
var lastreg = "";
|
||||||
Object.entries(options)
|
Object.entries(options)
|
||||||
|
.map(([_, data]) => {
|
||||||
|
data["_key"] = _;
|
||||||
|
return data
|
||||||
|
})
|
||||||
.sort(betterSorter)
|
.sort(betterSorter)
|
||||||
.map((entry) => {
|
.map((entry) => {
|
||||||
var key = entry[0];
|
var key = entry["_key"];
|
||||||
var value = entry[1];
|
var value = entry;
|
||||||
if (lastreg != value.Region.toUpperCase()) {
|
if (lastreg != value.Region.toUpperCase()) {
|
||||||
lastreg = value.Region.toUpperCase();
|
lastreg = value.Region.toUpperCase();
|
||||||
var h3_0 = document.createElement("h2");
|
var h3_0 = document.createElement("h2");
|
||||||
@@ -684,16 +688,6 @@ function SC_priceCalc(json) {
|
|||||||
return [precio, valores];
|
return [precio, valores];
|
||||||
}
|
}
|
||||||
|
|
||||||
function PERSONAS_Sorter(a, b) {
|
|
||||||
if (a[1].Region < b[1].Region) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
if (a[1].Region > b[1].Region) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
function TS_IndexElement(
|
function TS_IndexElement(
|
||||||
pageco,
|
pageco,
|
||||||
config,
|
config,
|
||||||
|
|||||||
Reference in New Issue
Block a user