Calling `.get()` here is essentially a no-op, as jQuery already seems to inherit from Array.prototype (unless there is something tricky here which I am missing). That is, you can call `$("#chat-messages").children("div").sort(comparator)`.