Skip to content

Commit

Permalink
fix: sort items in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jul 24, 2024
1 parent 8cd64f3 commit a0d8bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (i *Importer) GetMetadata(ctx context.Context) ([]Metadata, error) {
}

sort.SliceStable(metadata, func(i, j int) bool {
return metadata[i].CreatedAtTime().Before(metadata[j].CreatedAtTime())
return metadata[i].CreatedAtTime().After(metadata[j].CreatedAtTime())
})

return metadata, nil
Expand Down

0 comments on commit a0d8bb3

Please sign in to comment.