A sort code is a name given by both the British and Irish banking industry to the bank codes which are used to route money transfers between banks within their respective countries via their respective clearance organizations.
The six-digit sort code number is an identifier for both the bank and the branch where the bank account is held. In some cases, the first digit of the sort code identifies the bank itself and in other cases, the first 2 digits identify the bank.