def ordered_cbs(self, cb_func):
    return [cb for cb in sort_by_run(self.cbs) if hasattr(cb, cb_func)]
def ordered_cbs(self, cb_func):
    return [cb for cb in sort_by_run(self.cbs) if hasattr(cb, cb_func)]