diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-07-31 22:35:37 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-07-31 22:35:37 +0200 |
| commit | 7c6ab4f9be74389366c81610e8266402fee9b45f (patch) | |
| tree | a6e5a9e057418acc65e970ebb979567fdd939931 /cli/src | |
| parent | 70cfdfceabafb0e17357dff6c2e0fe0ad6996d99 (diff) | |
| download | money-7c6ab4f9be74389366c81610e8266402fee9b45f.tar.gz | |
update todo
Diffstat (limited to 'cli/src')
| -rw-r--r-- | cli/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs index 43f13b3..12325e2 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -71,7 +71,7 @@ impl std::str::FromStr for ListTarget { #[derive(StructOpt)] enum SortTarget { Amount, - Date, //TODO ? + Date, } impl std::str::FromStr for SortTarget { @@ -146,6 +146,9 @@ fn main() { SortTarget::Date => transactions.sort_by_key(|t| t.date), } for i in 1..sort.len() { + //TODO This won't work with 3+ sorts in case key 2 are equal across a key 1 + // border. We need to pass the earlier buckets for later sorts as well. + // `Vec<range>`? inner_sort_by(&mut transactions, sort_by_func(&sort[i-1]), sort_by_func(&sort[i])); } } |
