dirkvranckaert / my-episodes-watch-manager

Automatically exported from code.google.com/p/my-episodes-watch-manager
1 stars 2 forks source link

Sort "Show List" alphabetically #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sort order for the shows, are "oldest unwatched episode" -> "newest", which 
is the same way www.myepisodes.com/myshows does it. To me that doesn't 
make much sense - if I am scrolling thru a long list of shows, the alphabet 
is easier to remember than the air date of the first unwatched show, compared 
to all the other air dates of all the other shows... :)

If at all possible, I would like to be able to choose 
to sort the shows alphabetically instead.

Original issue reported on code.google.com by fredrik.nohrborg on 10 May 2010 at 9:23

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 11 May 2010 at 8:28

GoogleCodeExporter commented 8 years ago
This is a feature I do like and is not that hard to implement.
However sorting a list isn't that hard the preference of the user should be in 
a 
preferences window which makes this issue a lot bigger.

Preferences:
- Shortcut to the preferences window in the 'Menu'
- Only one option so far to select sorting 'Newest first', 'Oldest first' from 
a 
dropdown
- Saved preferences should not change upon clicking some save button, it should 
already change after selecting a new value!
- Show message that changes only take place after reloading the list of 
episodes or 
after restarting the application

Sorting:
- CollectionUtils or ListUtils can be used to sort a list using a Comparator in 
Java
- In code we can create an Enum sorting with two values ASC and DESC, modify 
activity:
//Retrieve option from memory (same way as for username and pwd)
episodes = myEpisodesService.retrieveEpisodes(user); //Add the sorting option 
to the 
call of the method
- In code the sorting will be implemented at service level

Original comment by dirkvran...@gmail.com on 11 May 2010 at 8:40

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 11 May 2010 at 8:41

GoogleCodeExporter commented 8 years ago
build in check after login to see if preferences already set (make method that 
can 
be extended later). If not yet set use as default ascending!

Original comment by dirkvran...@gmail.com on 11 May 2010 at 2:19

GoogleCodeExporter commented 8 years ago
Just commited a first part for solving this issue:
* Some refactoring done
* Sorting implemented and working. Altough not yet configurable for the user.

The preferences screen is the next step!

Original comment by dirkvran...@gmail.com on 11 May 2010 at 5:06

GoogleCodeExporter commented 8 years ago
Everything works now (ordering and options activity). We just have to see if we 
want 
extra options to be implemented. If so we'll do it this release!

Original comment by dirkvran...@gmail.com on 13 May 2010 at 7:18

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 15 May 2010 at 5:11