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

bug? when using orderBy filter with an array of objects and a field with spaces #8592

Closed
@Loksly

Description

@Loksly

Hi everybody.

I get an "Error: [$parse:syntax] Syntax Error" when using a field that has two or more words.

For example for this array of objects:

            [
              { "label": "one",  "value": 1, "sort value": 2,  "sort": 3  },
              { "label": "two",  "value": 2, "sort value": 1,  "sort": 2  },
              { "label": "three",  "value": 3, "sort value": 1,  "sort": 1  },
            ]

I can sort by label, value or sort attributes. But it fails when using "sort value".
I guess it's easier to review using a jsfiddle link with an example, here it is:
http://jsfiddle.net/qWzTb/733/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions