add amount compare
This commit is contained in:
parent
bcc940100a
commit
708be6279a
3 changed files with 11 additions and 10 deletions
|
|
@ -99,16 +99,7 @@ let make_denom_group_sorted denominations =
|
|||
let open RsaDenomGroup in
|
||||
let open RsaDenom in
|
||||
let cmp_denom b a = Timestamp.compare a.stamp_start b.stamp_start in
|
||||
let cmp_group =
|
||||
let cmp_amount a b =
|
||||
(* TODO amount *)
|
||||
let open Amount in
|
||||
match Int64.unsigned_compare a.value b.value with
|
||||
| 0 -> Int32.unsigned_compare a.fraction b.fraction
|
||||
| n -> n
|
||||
in
|
||||
fun (Rsa a) (Rsa b) -> cmp_amount a.value b.value
|
||||
in
|
||||
let cmp_group = fun (Rsa a) (Rsa b) -> Amount.compare a.value b.value in
|
||||
let l =
|
||||
l
|
||||
|> List.map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue