fix email ordering