The 30-share Sensex ended higher by 31 points at 26,591 and the 50-share Nifty gained 10 points at 8,061.