Skip to content

johnbrowe/faroese-alphabet-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faroese alphabet sort

A package that sorts an array by the faroese alphabet.

Usage

First, install the package using npm:

npm i faroese-alphabet-sort --save

Then, require the package and use it like so:

const faroese = require('faroese-alphabet-sort');

const names = [
  'Bartal',
  'Díðrikur',
  'Ásgeir',
  'Arnaldur',
];

console.log(faroese.sortArrayOfStrings(names)); 
// ['Arnaldur', 'Ásgeir', 'Bartal' 'Díðrikur',]

const names = [
  { name: 'Bartal' },
  { name: 'Díðrikur' },
  { name: 'Ásgeir' },
  { name: 'Arnaldur' },
];

console.log(faroese.sortArrayOfObjects(names, "name")); 
// [{ name: 'Arnaldur' }, { name: 'Ásgeir' }, { name: 'Bartal' }, { name: 'Díðrikur' },]

License

Apache 2.0

About

Sort strings by the faroese alphabet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published