I have the following code that creates a new Sort object and binds a custom "sorted" event to it.
```
this.sort = new Sort(this);
$(this.sort).on("sorted", function() {
console.log("Items have been sorted!");
});
```
But despite the "sorted" event being triggered during the object's creation, the `log()` line doesn't run. I assume it's because the event hasn't been bound yet when it's first triggered.
What's the best way to address this?