Returns index of sub-item by its command ID.
Use this method to find a sub-item's index by command ID.