human<=> ( obj1 obj2 -- <=> )
Human-friendly sorting
Next:human>=< ( obj1 obj2 -- >=< )


Vocabulary
sorting.human

Inputs and outputs
obj1an object
obj2an object
<=>an ordering specifier


Word description
Compares two objects after converting numbers in the string into integers.

Definition
USING: math.order sequences ;

IN: sorting.human

: human<=> ( obj1 obj2 -- <=> )
[ find-numbers [ <alphanum> ] map ] compare ;