fix trades sorting