Hi,
In most cases, XML files refer to bands by bandIs. In the granule files, lines like these tell me that B8A has bandId=8:
<MASK_FILENAME bandId="8" type="MSK_DEFECT">S2A_OPER_MSK_DEFECT_SGS__20160123T093126_A003061_T47NNJ_B8A_MSIL1C.gml</MASK_FILENAME>
So the order of the bands that bandIds refer to is B1, ..., B8, B8A, B9, ..., B12.
However, the top asset XML file contains this:
<Band_List>
<BAND_NAME>B1</BAND_NAME>
<BAND_NAME>B2</BAND_NAME>
<BAND_NAME>B3</BAND_NAME>
<BAND_NAME>B4</BAND_NAME>
<BAND_NAME>B5</BAND_NAME>
<BAND_NAME>B6</BAND_NAME>
<BAND_NAME>B7</BAND_NAME>
<BAND_NAME>B8</BAND_NAME>
<BAND_NAME>B9</BAND_NAME>
<BAND_NAME>B10</BAND_NAME>
<BAND_NAME>B11</BAND_NAME>
<BAND_NAME>B12</BAND_NAME>
<BAND_NAME>B8A</BAND_NAME>
</Band_List>
So B8A is at the end. What is the purpose of this list? The same file contains bandIds for SOLAR_IRRADIANCE without band names, and without knowing the correct order of bands (with B8A presumably last), I would have assigned the values of SOLAR_IRRADIANCE incorrectly - so this discrepancy is confusing.