Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doubleu23/sortiso.js
sort german umlauts (ÄÖÜß)
https://github.com/doubleu23/sortiso.js
Last synced: 29 days ago
JSON representation
sort german umlauts (ÄÖÜß)
- Host: GitHub
- URL: https://github.com/doubleu23/sortiso.js
- Owner: DoubleU23
- Created: 2015-09-01T14:20:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T19:17:06.000Z (over 8 years ago)
- Last Synced: 2024-10-05T14:44:13.623Z (about 1 month ago)
- Language: CSS
- Size: 410 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
Awesome Lists containing this project
README
sortISO.js - sort german umlauts
sortISO() - sort german umlauts
Usage:
var arr = ['abc', 'äbc', 'Äbc', 'Abc'],
sorted = arr.sort( sortISO );
console.log( sorted );
view output (or try for yourself in the console)
["Abc", "Äbc", "abc", "äbc"]
The Code
sortISO by Stefan Friedl is licensed under a
Creative Commons Attribution-ShareAlike 4.0 International License.
window.jQuery || document.write('<script src="http://code.jquery.com/jquery-1.11.0.min.js"><\/script>');
(function(window, $, undefined) {
$(function() {$('.toggleTrigger').on('click', function(e) {
var $this = $(this)
, $target = $this.parent().next('.toggleTarget')
;
$this.text( $this.text() === 'view output'? 'close output' : 'view output' );
$target.slideToggle('visible');
return false;
});});
})(window, window.jQuery);