added sortKey method to transaction manager