Skip to content

Commit a177b87

Browse files
committed
Add natural sort experiment with localeCompare() in Angular 8.
1 parent bd47c13 commit a177b87

23 files changed

Lines changed: 10198 additions & 0 deletions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ with.
1010

1111
## My JavaScript Demos - I Love JavaScript!
1212

13+
* [Using The String localeCompare() Method To Implement A Natural Sort In Angular 8.2.0-next.0](https://bennadel.github.io/JavaScript-Demos/demos/sorting-locale-compare-angular8/dist/)
1314
* [Wrapping Immutable Arrays In Mutable Arrays For Easier Processing In Angular 8.2.0-next.0](https://bennadel.github.io/JavaScript-Demos/demos/wrapping-arrays-for-functionality-angular8/dist/)
1415
* [Use CSS Overflow "Auto" - Not Overflow "Scroll" - When Clipping Most Fixed-Size Containers](https://bennadel.github.io/JavaScript-Demos/demos/css-overflow-auto/)
1516
* [Hello World With The CLI, AoT, Lazy Loading Routes, Differential Loading, And Ivy In Angular 8.1.0-beta.2](https://bennadel.github.io/JavaScript-Demos/demos/webpack4-angular8-cli/dist/)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# Compiled files.
3+
/out-tsc
4+
/tmp
5+
6+
# Build-time dependencies.
7+
/node_modules
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "less"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "dist/",
21+
"index": "src/index.htm",
22+
"main": "src/main.ts",
23+
"polyfills": "src/polyfills.ts",
24+
"tsConfig": "tsconfig.json",
25+
"assets": [
26+
"src/assets"
27+
],
28+
"styles": [],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"fileReplacements": [
34+
{
35+
"replace": "src/environments/environment.ts",
36+
"with": "src/environments/environment.prod.ts"
37+
}
38+
],
39+
"optimization": true,
40+
"outputHashing": "all",
41+
"sourceMap": false,
42+
"extractCss": true,
43+
"namedChunks": false,
44+
"aot": true,
45+
"extractLicenses": false,
46+
"vendorChunk": false,
47+
"buildOptimizer": true,
48+
"budgets": [
49+
{
50+
"type": "initial",
51+
"maximumWarning": "2mb",
52+
"maximumError": "5mb"
53+
}
54+
]
55+
}
56+
}
57+
},
58+
"serve": {
59+
"builder": "@angular-devkit/build-angular:dev-server",
60+
"options": {
61+
"browserTarget": "demo:build"
62+
},
63+
"configurations": {
64+
"production": {
65+
"optimization": true,
66+
"sourceMap": true,
67+
"aot": true
68+
}
69+
}
70+
}
71+
}
72+
}},
73+
"defaultProject": "demo"
74+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-11 # For IE 9-11 support, remove 'not'.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
7+
<title>
8+
Using The String localeCompare() Method To Implement A Natural Sort In Angular 8.2.0-next.0
9+
</title>
10+
11+
<base href="./" />
12+
</head>
13+
<body>
14+
15+
<h1>
16+
Using The String localeCompare() Method To Implement A Natural Sort In Angular 8.2.0-next.0
17+
</h1>
18+
19+
<app-root></app-root>
20+
21+
<script src="runtime-es2015.703a23e48ad83c851e49.js" type="module"></script><script src="polyfills-es2015.bfe445a5fe4a078e3bd7.js" type="module"></script><script src="runtime-es5.465c2333d355155ec5f3.js" nomodule></script><script src="polyfills-es5.03d8c9fc4ed8e610412b.js" nomodule></script><script src="main-es2015.4983bff8f448f53c850e.js" type="module"></script><script src="main-es5.6697e0ac73630fb3381e.js" nomodule></script></body>
22+
</html>

demos/sorting-locale-compare-angular8/dist/main-es2015.4983bff8f448f53c850e.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/sorting-locale-compare-angular8/dist/main-es5.6697e0ac73630fb3381e.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/sorting-locale-compare-angular8/dist/polyfills-es2015.bfe445a5fe4a078e3bd7.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/sorting-locale-compare-angular8/dist/polyfills-es5.03d8c9fc4ed8e610412b.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/sorting-locale-compare-angular8/dist/runtime-es2015.703a23e48ad83c851e49.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)