The sort code is a number which usually identifies both the bank and the branch where an account is held. The sort code is usually used when transferring funds from one account in one bank branch to another branch of the bank or another bank.
Here are a list of all the sort codes and branches.