-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
GUI: Numerical columns can be sorted numerically #1420
Conversation
Moved the creation of the 3 different sorter kinds into different methods for: string based, integer based and checkbox based fixes #1419
Thank you for doing this. Will be very helpful when uninstalling and installing mods. |
return Sort(rows, CreateDefaultSorter()); | ||
} | ||
|
||
private IEnumerable<DataGridViewRow> Sort<T>(IEnumerable<DataGridViewRow> rows, Func<DataGridViewRow, T> sortFunction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Today I learnt the Func<>
keyword in C#. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plague006 : I have no idea what I just watched, but it was amazing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You learned about the func. 😄
* 1420_adjust: Simply colum sorting to use methods rather than closures Implemented a int sorter Moved the creation of the 3 different sorter kinds into different methods for: string based, integer based and checkbox based fixes #1419
Merged with thanks, and a small adjustment to use methods rather than closures (cd47a9b) |
Moved the creation of the 3 different sorter kinds into different methods for:
string based, integer based and checkbox based
fixes #1419