From 6ac3ad50dc90447cde1bdff03e18b07366638749 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 10 Nov 2023 22:29:50 -0700 Subject: [PATCH] oh wow this has been wrong this entire time --- src/ship/items/bank.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ship/items/bank.rs b/src/ship/items/bank.rs index 799cb03..885aba4 100644 --- a/src/ship/items/bank.rs +++ b/src/ship/items/bank.rs @@ -336,8 +336,8 @@ impl std::cmp::Ord for BankItemDetail { self_bytes.copy_from_slice(&self.as_client_bytes()[0..4]); other_bytes.copy_from_slice(&other.as_client_bytes()[0..4]); - let self_value = u32::from_le_bytes(self_bytes); - let other_value = u32::from_le_bytes(other_bytes); + let self_value = u32::from_be_bytes(self_bytes); + let other_value = u32::from_be_bytes(other_bytes); self_value.cmp(&other_value) }