Added natural sort for alpha sort to remedy RO number sorting IO-465

This commit is contained in:
Patrick Fic
2020-12-16 20:06:09 -08:00
parent 9655d57fb8
commit 0a1a9c199d
3 changed files with 34 additions and 5 deletions

17
.expo/README.md Normal file
View File

@@ -0,0 +1,17 @@
> Why do I have a folder named ".expo" in my project?
The ".expo" folder is created when an Expo project is started using "expo start" command.
> What does the "packager-info.json" file contain?
The "packager-info.json" file contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
> What does the "settings.json" file contain?
The "settings.json" file contains the server configuration that is used to serve the application manifest.
> Should I commit the ".expo" folder?
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.

9
.expo/settings.json Normal file
View File

@@ -0,0 +1,9 @@
{
"scheme": null,
"hostType": "lan",
"lanType": "ip",
"dev": true,
"minify": false,
"urlRandomness": null,
"https": false
}

View File

@@ -3,9 +3,12 @@ export function alphaSort(a, b) {
let B;
A = a ? a.toLowerCase() : "";
B = b ? b.toLowerCase() : "";
if (A < B)
//sort string ascending
return -1;
if (A > B) return 1;
return 0; //default return value (no sorting)
return A.localeCompare(B);
// if (A < B)
// //sort string ascending
// return -1;
// if (A > B) return 1;
// return 0; //default return value (no sorting)
}