[#21] Support for sorting asc/desc

Remove the dynamic function call on line 51. Only modules that define callbacks should make dynamic calls.