sr-npm 1.7.1228 → 1.7.1231

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1228",
3
+ "version": "1.7.1231",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -254,7 +254,7 @@ async function handleParams(_$w,param,values) {
254
254
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
255
255
  handlePaginationButtons(_$w);
256
256
  console.log("scrolling to secondary search input");
257
- await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).scrollTo();
257
+ await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
258
258
  console.log("scrolled to secondary search input");
259
259
  });
260
260
 
@@ -265,7 +265,7 @@ async function handleParams(_$w,param,values) {
265
265
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
266
266
  handlePaginationButtons(_$w);
267
267
  console.log("scrolling to secondary search input");
268
- await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).scrollTo();
268
+ await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
269
269
  console.log("scrolled to secondary search input");
270
270
  });
271
271
  } catch (error) {
@@ -488,6 +488,10 @@ function getValueFromValueId(valueIds, value) {
488
488
  ? withCounts.filter(o => (o.label || '').toLowerCase().includes(searchQuery))
489
489
  : withCounts;
490
490
 
491
+ // Sort alphabetically by label
492
+ console.log("filtered before sorting: ",filtered)
493
+ filtered.sort((a, b) => (a.label || '').localeCompare(b.label || ''));
494
+ console.log("filtered after sorting: ",filtered)
491
495
  // Preserve currently selected values that are still visible
492
496
  // let prevSelected=[]
493
497
  // clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;