sorting fixed, transactions added, validation fixed