order transactions by id in detail view