Sorting objects problem

Hi, I’m trying to compile the example I found here: http://openframeworks.cc/learning/08_other/sorttype/

About sorting objects, but I get the error: eference to non-static member function must be called

Please help :slight_smile: Thanks.

I tried the code and it works for me. Maybe you used somewhere square brackets instead of parenthesis? In which line does it give an error?

you might need to do:

ofSort(objects, &sortMe);

with certain compilers, note the & before sortMe missing in the example

Thanks, I got it. :smiley: I was declaring the function in the wrong place.