Function serializeSorts

  • Example

    serializeSorts([{ property: 'firstName', direction: 'ascending' }],{ separator: '.', transform: 'camelize' });
    // => 'first_name.asc'

    serializeSorts([{ property: 'lastName', direction: 'descending' }],{ separator: '.', transform: 'camelize' });
    // => 'last_name.desc'

    Parameters

    • sorts: Sort[]
    • options: SortsOptions = ...

    Returns string

Generated using TypeDoc