typedb / typeql

TypeQL: the power of programming, in your database
https://typedb.com
Mozilla Public License 2.0
219 stars 46 forks source link

Allow each sort variable to have a direction #228

Closed flyingsilverfin closed 2 years ago

flyingsilverfin commented 2 years ago

Problem to Solve

The grammar allows match ... ; sort $x, $y, $z asc/desc;. However, we should allowing each sort variable to have its own direction: sort $x asc, $y desc, $z asc; for example.

Current Workaround

N/A

Proposed Solution

Change the grammar to allow sorting per-variable

Additional Information

flyingsilverfin commented 2 years ago

Implemented in https://github.com/vaticle/typeql/pull/230