sortby orders JavaScript arrays using a MongoDB-like syntax.