Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silverbucket/utf8compare
compare 2 utf8 strings for easy sorting of different languages
https://github.com/silverbucket/utf8compare
Last synced: 1 day ago
JSON representation
compare 2 utf8 strings for easy sorting of different languages
- Host: GitHub
- URL: https://github.com/silverbucket/utf8compare
- Owner: silverbucket
- License: lgpl-3.0
- Created: 2014-11-18T19:18:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T15:38:47.000Z (over 3 years ago)
- Last Synced: 2024-10-12T17:30:40.798Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
utf8compare
===========compare 2 utf8 strings for easy sorting of different languages. currently only german is supported, but it's easy to add other languages (see `dict` var in source)
`npm install utf8compare`
```javascript
var UTF8Compare = require('utf8compare')('de');searchData = searchData.sort(function (a, b) {
var r = UTF8Compare(a[1], b[1]);
return r;
});```