static int compare_tag_item(const struct tag *a, const struct tag *b, enum tag_type type) { if (a == NULL) return b == NULL ? 0 : -1; if (b == NULL) return 1; return compare_number_string(tag_get_value(a, type), tag_get_value(b, type)); }
static int compare_tag_item(const struct tag *a, const struct tag *b, enum tag_type type) { return compare_number_string(tag_get_value_checked(a, type), tag_get_value_checked(b, type)); }