In the UK each bank branch has a unique six-digit identifier, referred to as the sort-code. It is printed on the top right-hand corner of your cheques and is required for electronic payments between accounts (e.g. CHAPS, BACS), but not for things like Switch or Visa transactions.
Generally a bank has a block of codes. Some examples (EDIT ME!):