Electronic ordering in crystals