Added order by to graph