added a programmatic way to retreive references with their order numbers