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

GUI: Numerical columns can be sorted numerically #1420

Merged
merged 1 commit into from
Sep 10, 2015
Merged

GUI: Numerical columns can be sorted numerically #1420

merged 1 commit into from
Sep 10, 2015

Conversation

Postremus
Copy link
Contributor

Moved the creation of the 3 different sorter kinds into different methods for:
string based, integer based and checkbox based
fixes #1419

Moved the creation of the 3 different sorter kinds into different methods for:
string based, integer based and checkbox based
fixes #1419
@Keith-UCT
Copy link

Thank you for doing this. Will be very helpful when uninstalling and installing mods.

@pjf pjf changed the title Implemented a int sorter GUI: Numerical columns can be sorted numerically Sep 10, 2015
return Sort(rows, CreateDefaultSorter());
}

private IEnumerable<DataGridViewRow> Sort<T>(IEnumerable<DataGridViewRow> rows, Func<DataGridViewRow, T> sortFunction)
Copy link
Member

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#. :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

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.

Copy link
Contributor

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. 😄

pjf added a commit that referenced this pull request Sep 10, 2015
@pjf pjf merged commit a6f25c0 into KSP-CKAN:master Sep 10, 2015
@pjf pjf removed the pull request label Sep 10, 2015
pjf added a commit that referenced this pull request Sep 10, 2015
* 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
@pjf
Copy link
Member

pjf commented Sep 10, 2015

Merged with thanks, and a small adjustment to use methods rather than closures (cd47a9b)

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.

GUI: Download sizes should be sorted as numbers, not strings.
4 participants