Although there is a strong correlation between BIC Codes and sort codes, sort codes are not explicitly encoded into BIC codes (although they are encoded into IBANs).
The numbering ranges for both are complementary, but do not overlap.
The BBAN, whose format is decided by the national banking community, includes the domestic bank account number, branch identifier and potentially routing information, the only restrictions being that it must be of fixed length and that only case-insensitive alphanumeric characters are used.