Added natural sort for alpha sort to remedy RO number sorting IO-465
This commit is contained in:
17
.expo/README.md
Normal file
17
.expo/README.md
Normal 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
9
.expo/settings.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"scheme": null,
|
||||
"hostType": "lan",
|
||||
"lanType": "ip",
|
||||
"dev": true,
|
||||
"minify": false,
|
||||
"urlRandomness": null,
|
||||
"https": false
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user