# Missing callback : How to implement it

**URL:** <https://www.ruby-forum.com/t/missing-callback-how-to-implement-it/243509>\
**Category:** Ruby-Gnome 2\
**Created:** [November 24, 2015, 5:05pm UTC](https://www.ruby-forum.com/t/missing-callback-how-to-implement-it/243509 "2015-11-24T17:05:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [November 24, 2015, 5:05pm UTC](https://www.ruby-forum.com/t/missing-callback-how-to-implement-it/243509/1 "2015-11-24T17:05:01Z")

</div>

Hi

I’m running some old code, 6 months old approximately, and I’m running  
into a problem :

/[…]/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:551:in  
`invoke’: TODO: (sort\_func) callback is not  
supported yet. (NotImplementedError)

I’m wondering : Is there a documentation on how to implement it ?

Here is the snippet :

$builder[‘users\_treemodelsort’].set\_default\_sort\_func do |i1, i2|  
i1[1] \<=\> i2[1] || 0  
end

EDIT

I found after posting :

> <https://github.com/ruby-gnome/ruby-gnome/issues/596>
>
> Please Implement this in the next release. \`\<TreeIterCompareFunc\>(sort\_func)\`

I will try on 3.0.8. Hope it gets released soon.
