added order by
parser done
Merge pull request #1111 from john-hill/PLFM-2378-d

added order by