Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed argument sorting #7

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Conversation

mariohahn
Copy link
Collaborator

Im moment war die Sortierung der Argument teilweise falsch.

of %d %s used ergab -> func markusTest(_ arg0: String, _ arg1: Int) -> String

jetzt ergibt es richtigerweise:
of %d %s used ergab -> func markusTest(_ arg0: Int, _ arg1: String) -> String

end

result = result.sort_by! { |k| k["offset"] }.reverse!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = result.sort_by! { |k| k["offset"] }.reverse!
result = result.sort_by! { |k| -k["offset"] }

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that :D it crashed, I have no plan why :D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(tests would also be nice, but none are setup for this project)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, atm I have my local tests, you can see the fastlane lanes. No Unit tests, but hey, at least I test it :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aber ja da gibt es sicher Verbesserungspotential

@mariohahn mariohahn merged commit 707a4f1 into master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants