Fixed cookies and sorting again