Implemented order by on the repositories table