From 31ea557a2c85393c63f36df33e2af34752601e7d Mon Sep 17 00:00:00 2001 From: /alex/ Date: Tue, 17 Oct 2023 20:45:01 +0200 Subject: [PATCH] Rename sort fns Co-authored-by: DaughterOfMars --- cli/src/command/account.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/command/account.rs b/cli/src/command/account.rs index 6925f04c2e..a00c35cac8 100644 --- a/cli/src/command/account.rs +++ b/cli/src/command/account.rs @@ -1024,10 +1024,10 @@ async fn print_outputs(mut outputs: Vec, 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) }