sub czech-sort(String $a, String $b) { # sort logic here } @czech-words.sort( &czech-sort );