sorting login persist problem