Adds the ability to sort references by multiple columns. #3.