Added lowercasing of sort key to favorite handler.