Optimisation for swich for ordered lists