avil13-co 2.1.2 → 2.1.3

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/dist/ask.js CHANGED
@@ -35,6 +35,9 @@ function checkItem(item, filterString) {
35
35
  }
36
36
  exports.checkItem = checkItem;
37
37
  function sortOrder(searchString, name1, name2) {
38
+ if (name1.indexOf(searchString) < name2.indexOf(searchString)) {
39
+ return 1;
40
+ }
38
41
  if (name2.includes(searchString)) {
39
42
  return 0;
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avil13-co",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "public": true,
package/src/ask.ts CHANGED
@@ -39,6 +39,10 @@ export function checkItem(item: string, filterString: string): boolean {
39
39
  }
40
40
 
41
41
  function sortOrder(searchString: string, name1: string, name2: string): number {
42
+ if (name1.indexOf(searchString) < name2.indexOf(searchString)) {
43
+ return 1;
44
+ }
45
+
42
46
  if (name2.includes(searchString)) {
43
47
  return 0;
44
48
  }