#!/usr/bin/perl

BEGIN { print "Note: I've left the non-ASCII characters as HTML entities. -Jon" }

use locale;
use Sort::ArbBiLex;

*Swedish_sort = Sort::ArbBiLex::maker(
  "a A
   o O
   &auml; &Auml;
   &ouml; &Ouml;
  "
);
*German_sort = Sort::ArbBiLex::maker(
  "a A
   &auml; &Auml;
   o O
   &ouml; &Ouml;
  "
);
@words = qw(M&ouml;ller M&auml;rtz Morot Mayer Mortenson Mattson);
foreach (Swedish_sort(@words)) { print "p&aring; svenska:  $_\n" }
foreach (German_sort (@words)) { print "auf Deutsch: $_\n" }
