Skip to content

Sort #256

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

Merged
merged 10 commits into from
Nov 2, 2019
Merged

Sort #256

merged 10 commits into from
Nov 2, 2019

Conversation

yaira2
Copy link
Member

@yaira2 yaira2 commented Oct 31, 2019

No description provided.

jeffsieu and others added 9 commits October 25, 2019 01:53
Files and folders can now be sorted by clicking on
the column headers or by using the right-click context
menu. The sorting order mimics Windows Explorer,
by grouping the folders and files separately first, then
applying the relevant sort on the specified column,
then finally sorting by name.

Also:
- Improves right-click context menu action grouping
- Removes RowIndex from ListedItem.cs as it is not a
  reliable way to access items (indices change)
  after sorting is implemented
- Refactors code to work around the absence of RowIndex
- Other minor code refactoring
Add sorting function to files list
Also:
- Adds SortOption enum to represent
  current file attribute to sort by
- Moves sorting logic to ItemViewModel
  from GenericFileBrowser. This allows
  sorting options to persist through
  folder navigation

Issues:
- Navigating to another folder currently
  sorts its files only after all of them
  are loaded.
This commit completes the implementation of
sorting in Files by adding a "Sort by" button
to the ribbon.

Other changes:
- Moves all sorting-related properties (e.g. IsSortedByName)
  to ItemViewModel from GenericFileBrowser and PhotoAlbum
- Refactors all instances of NotifyPropertyChanged
  to use the CallerMemberName attribute
- Removes some unused namespace references
Add sort button to app ribbon
@yaira2 yaira2 requested a review from lukeblevins October 31, 2019 02:26
@yaira2 yaira2 assigned lukeblevins and yaira2 and unassigned yaira2 Nov 1, 2019
Copy link
Contributor

@lukeblevins lukeblevins left a comment

Choose a reason for hiding this comment

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

Reviewed the changes and everything looks good in my testing

@lukeblevins lukeblevins merged commit b556239 into master Nov 2, 2019
@yaira2 yaira2 deleted the sort branch March 25, 2020 02:32
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.

3 participants