Added better sorting functionality on transaction page