sorting works now