All the sectoral indices on the NSE ended in the green, with consumer durables, FMCG and realty shares gaining the most.