filhodanuvem / gitql

💊 A git query language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order by desc/asc

jcubic opened this issue · comments

It seems that the two queries return the same results:

git ql "select message from commits order by date asc limit 10"
git ql "select message from commits order by date desc limit 10"

Looks like if the sort column is not present in the selected column list, sorting does not work.
The above queries with the date in the select column seem to work

git ql "select message, date from commits order by date asc limit 10"
git ql "select message, date from commits order by date desc limit 10"

Nice to point that out @jsixface! I believe that the current code is ignoring the date in the first example. Perhaps just a matter of that to the symbol table. I will try to check that out later. Thanks.

Hi @jcubic, that was fixed on #52 by @jsixface, thanks!

Oh, I've completly forget about this project I've just installed it on my current Linux Box.