Stringify array before sorting

This should fix #78.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>