In a small bowl, combine mayonnaise, sugar, salt and pepper. In a large salad bowl, layer a third of the greens and a third of the mayonnaise mixture, onion, peas and cheese. Repeat the layers twice. Cover and refrigerate for at least 2 hours. Just before serving, add the bacon and toss.