diff --git a/.expo/README.md b/.expo/README.md new file mode 100644 index 000000000..d8971e420 --- /dev/null +++ b/.expo/README.md @@ -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. diff --git a/.expo/settings.json b/.expo/settings.json new file mode 100644 index 000000000..c5ac37523 --- /dev/null +++ b/.expo/settings.json @@ -0,0 +1,9 @@ +{ + "scheme": null, + "hostType": "lan", + "lanType": "ip", + "dev": true, + "minify": false, + "urlRandomness": null, + "https": false +} diff --git a/client/src/utils/sorters.js b/client/src/utils/sorters.js index 7064167d7..08f03c565 100644 --- a/client/src/utils/sorters.js +++ b/client/src/utils/sorters.js @@ -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) }