Drafts Script Reference
    Preparing search index...

    Type Alias sortBy

    sortBy: "created" | "modified" | "accessed" | "name"

    The name option sorts by full text of the draft, otherwise the sort is based on the specified date value.