Function deserializeSorts

  • Parameters

    • sortString: string
    • options: SortsOptions = ...

    Returns Sort[]

    Example

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

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

Generated using TypeDoc