changed order by to sorted by for stats all