Add a function of loans' order