Implement sorting on admin dashboard