Montellese/xbmc — comment on commit 9e7f33aacde9c7dc9ce16d6f32c2bdd3c2da6450
File: xbmc/settings/GUISettings.cpp line 973
By jmarshallnz:

There is a subtle change of behaviour here in that the count starts at 0 instead of 1. This has implications as now any setting specified via advancedsettings.xml (i.e. overriding the UI setting) will no longer be hidden as iOrder is not used to indicate whether things are advanced or not (iOrder == 0 -> advanced).

Simple fix is to use size()+1 and then run through the vector in GetGroup checking whether the setting is advanced.