Yeah.  ``tag_sorter`` is kind of like the builtin ``cmp``.  It returns -1, 0, or 1 depending on its comparison.