Fixed sorting on buttons in dashboard