Sorting an Array in JavaScript Bookmark

If you’ve sometimes wondered how sorting arrays in JavaScript works, or rather how it does not work, this is a good post from Phil Nash explaining some of the gotchas and inconsistencies.

Read the full article here: How not to sort an array in JavaScript

screenshot of article title from Phil Nash’s blog

Leave a comment

Available formatting commands

Use Markdown commands or their HTML equivalents to add simple formatting to your comment:

Text markup
*italic*, **bold**, ~~strikethrough~~, `code` and <mark>marked text</mark>.
Lists
- Unordered item 1
- Unordered list item 2
1. Ordered list item 1
2. Ordered list item 2
Quotations
> Quoted text
Code blocks
```
// A simple code block
```
```php
// Some PHP code
phpinfo();
```
Links
[Link text](https://example.com)
Full URLs are automatically converted into links.

Replied on your own website? Send a Webmention!