Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Fix month sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Nov 11, 2023
1 parent 2c0fa37 commit 249ba8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clean/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ fn main() -> Result<()> {

// Ordenamos todos los vectores de valores alfabéticamente
uniques.iter_mut().for_each(|(k, v)| {
if k.contains("mes") {
if k.starts_with("mes") {
// Ordenamos manualmente los meses, esta chido tener 1 es enero, 12 diciembre
v.sort_by_key(|a| mes_a_int(a))
v.sort_by_key(|a| mes_a_int(a.trim().trim_matches('"')));
println!("{v:?}");
} else {
v.sort()
}
Expand Down

0 comments on commit 249ba8f

Please sign in to comment.