Skip to content

Commit

Permalink
Rename sort fns
Browse files Browse the repository at this point in the history
Co-authored-by: DaughterOfMars <[email protected]>
  • Loading branch information
Alex6323 and DaughterOfMars authored Oct 17, 2023
1 parent 2fd7b25 commit 31ea557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/command/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,10 +1024,10 @@ async fn print_outputs(mut outputs: Vec<OutputData>, title: &str) -> Result<(),
Ok(())
}

fn output_booked_timestamp_and_output_id(a: &OutputData, b: &OutputData) -> std::cmp::Ordering {
fn outputs_ordering(a: &OutputData, b: &OutputData) -> std::cmp::Ordering {
(b.metadata.milestone_timestamp_booked(), a.output_id).cmp(&(a.metadata.milestone_timestamp_booked(), b.output_id))
}

fn transaction_timestamp(a: &Transaction, b: &Transaction) -> std::cmp::Ordering {
fn transactions_ordering(a: &Transaction, b: &Transaction) -> std::cmp::Ordering {
b.timestamp.cmp(&a.timestamp)
}

0 comments on commit 31ea557

Please sign in to comment.