In the United Kingdom, the sort code was introduced in the early 20th century. Since then, it has evolved for automation processes. Whereas originally, it was three to five digits long, it now has a length of six digits.