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

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

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

    Returns Sort[]