analysis in alphabetical order
This commit is contained in:
@@ -552,6 +552,20 @@
|
|||||||
})
|
})
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
|
analyses.sort(function (a, b) {
|
||||||
|
const nameA = (
|
||||||
|
a.NomeAnalisiTraduzione ||
|
||||||
|
a.NomeAnalisi ||
|
||||||
|
""
|
||||||
|
).toLowerCase();
|
||||||
|
const nameB = (
|
||||||
|
b.NomeAnalisiTraduzione ||
|
||||||
|
b.NomeAnalisi ||
|
||||||
|
""
|
||||||
|
).toLowerCase();
|
||||||
|
return nameA.localeCompare(nameB);
|
||||||
|
});
|
||||||
|
|
||||||
analysisLoadedCache[cacheKey] = analyses;
|
analysisLoadedCache[cacheKey] = analyses;
|
||||||
renderAnalysesList(analyses);
|
renderAnalysesList(analyses);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user