Are you saying that I do not call the existing getSortedElements and I create my own 'getSortedElements' which calls my callback and use cSort?