Skip to content

Commit 7969d44

Browse files
Allow sorting on multiple variables (#214)
## What is the goal of this PR? To enable typedb/typedb#6434, we add in the grammar that sorting on multiple (ordered) variables is allowed. ## What are the changes implemented in this PR? * allow sorting on multiple variables
1 parent 02645d5 commit 7969d44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grammar/TypeQL.g4

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ query_match_group_agg : query_match match_group match_aggregate ;
5959

6060
modifiers : ( filter ';' )? ( sort ';' )? ( offset ';' )? ( limit ';' )?;
6161

62-
filter : GET VAR_ ( ',' VAR_ )* ;
63-
sort : SORT VAR_ ORDER_? ;
64-
offset : OFFSET LONG_ ;
65-
limit : LIMIT LONG_ ;
62+
filter : GET VAR_ ( ',' VAR_ )* ;
63+
sort : SORT VAR_ ( ',' VAR_ )* ORDER_? ;
64+
offset : OFFSET LONG_ ;
65+
limit : LIMIT LONG_ ;
6666

6767

6868
// GET AGGREGATE QUERY =========================================================

0 commit comments

Comments
 (0)