Added zring_sort method

Fixed czmq_comparator to return int, not bool