Fix transaction sort order