Sort when only a single report is present
This commit is contained in:
parent
8417c4a8db
commit
06efebc17b
1 changed files with 2 additions and 0 deletions
|
|
@ -181,12 +181,14 @@ where
|
|||
(Some(u), None) => {
|
||||
return u
|
||||
.into_iter()
|
||||
.sorted_by_key(|(k, _)| *k)
|
||||
.map(|(k, v)| [Some(text(k).into()), float_text(v), None, None])
|
||||
.collect();
|
||||
}
|
||||
(None, Some(u)) => {
|
||||
return u
|
||||
.into_iter()
|
||||
.sorted_by_key(|(k, _)| *k)
|
||||
.map(|(k, v)| [Some(text(k).into()), None, None, float_text(v)])
|
||||
.collect();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue