! Copyright (C) 2008, 2010 Doug Coleman, Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors fry kernel make math math.order math.parser
+USING: accessors kernel make math math.order math.parser
sequences sorting.functor strings unicode ;
IN: sorting.human
: <alphanum-insensitive> ( obj -- alphanum )
alphanum new
- swap dup string? [ w/collation-key ] when >>obj ; inline
+ swap dup string? [ collation-key/nfd drop ] when >>obj ; inline
M: alphanum <=>
[ obj>> ] bi@