sr-npm 1.7.240 → 1.7.241
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/backend/data.js +7 -0
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -54,6 +54,13 @@ async function saveJobsDataToCMS() {
|
|
|
54
54
|
return basicJob;
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
+
// Sort jobs by title (ascending, case-insensitive, numeric-aware)
|
|
58
|
+
jobsData.sort((a, b) => {
|
|
59
|
+
const titleA = a.title || '';
|
|
60
|
+
const titleB = b.title || '';
|
|
61
|
+
return titleA.localeCompare(titleB, undefined, { sensitivity: 'base', numeric: true });
|
|
62
|
+
});
|
|
63
|
+
|
|
57
64
|
const chunkSize = 1000;
|
|
58
65
|
let totalSaved = 0;
|
|
59
66
|
const totalChunks = Math.ceil(jobsData.length / chunkSize);
|