Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 (ÄÖÜß)

Awesome Lists containing this project

README

        

sortISO.js - sort german umlauts



sortISO() - sort german umlauts



The Script changes the german umlauts (vowel mutations) ASCCI code to halfsteps of their original vowel and sorts the Array based on that fake ASCII-Codes

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




Creative Commons License

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);