Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

SyntaxError when trying to order by child #51

@ghost

Description

Using an order by where I'd like to sort on a child will result in a syntax error.

For example:
?$orderby=Rating,Category/Name desc

Will result in:

{ [SyntaxError: Expected " ", "&", ",", "." or [a-zA-Z0-9\-_] but "/" found.]
  name: 'SyntaxError',
  expected: [ '" "', '"&"', '","', '"."', '[a-zA-Z0-9\\-_]' ],
  found: '/',
  message: 'Expected " ", "&", ",", "." or [a-zA-Z0-9\\-_] but "/" found.',
  offset: 33,
  line: 1,
  column: 34 }

It's however specified as being valid according to these docs:
http://www.odata.org/documentation/odata-version-2-0/uri-conventions/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions