import { Model } from "https://deno.land/x/denodb@v1.1.0/lib/model.ts";
Order query results based on a field name and an optional direction.
await Flight.orderBy("departure").all();
await Flight.orderBy("departure", "desc").all();
await Flight.orderBy({ departure: "desc", destination: "asc" }).all();
Type Parameters
T extends ModelSchema