Sort UI_ callbacks and methods.