Skip to content

Instantly share code, notes, and snippets.

Benjamin Falk lumio

Block or report user

Report or block lumio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sorting-done-wrong.js
const fruits = [ 'Äpfel', 'Ananas', 'Birnen' ].sort();
console.log( fruits ); // [ 'Ananas', 'Birnen', 'Äpfel' ]
@lumio
lumio / sorting-done-right.js
Last active Mar 21, 2018
Sorting done right
View sorting-done-right.js
const localeCompare = ( a, b ) => a.localeCompare( b, 'de' );
const fruits = [ 'Äpfel', 'Ananas', 'Birnen' ].sort( localeCompare );
console.log( fruits ); // [ 'Ananas', 'Äpfel', 'Birnen' ]
View keybase.md

Keybase proof

I hereby claim:

  • I am lumio on github.
  • I am lumio (https://keybase.io/lumio) on keybase.
  • I have a public key ASDl4FkX1ZhXp_jQ1ETk3qSQj0CXgLNWwkJ2B3wQ_vU7rgo

To claim this, I am signing this object:

You can’t perform that action at this time.